function total(t)
{
    let max = t.length
    let result = 0;
    
    for(let i=0;i<max;i++)
        result += t[i]
    return result
}
/*
 * Create a `total` function that takes an array of numbers
 * and return the total
 *
 */
Create a `total` function that takes an array of numbers
and return the total
Create a ` total ` function that takes an array of numbers and return the total
function total(t)
{
    let max = t.length
    let result = 0;
    for(let i=0;i<max;i++)
        result += t[i]
    return result
}
function total ( t ) { let max = t . length let result = 0 ; for ( let i = 0 ; i < max ; i ++ ) result += t [ i ] return result }
Create a `total` function that takes an array of numbers
 and return the total
Create a ` total ` function that takes an array of numbers and return the total