Ponder - Array Methods

Purpose of this Ponder

This ponder will demonstrate array methods and a simple template literal for dynamic content. Some output will be on the page and other output in the console.

dynamic data and console output

Practice Code

          
function convert(grade) {
    switch (grade){
        case 'A':
            points = 4;
            break;
        case 'B':
            points = 3;
            break;
        case 'C':
            points = 2;
            break;
        case 'D':
            points = 1;
            break;
        case 'F':
            points = 0;
            break;
        default:
            alert('not a valid grade');
    }
    return points;
}
          
        
          
const words = ['watermelon', 'peach', 'apple', 'tomato', 'grape'];
          
        
          
const students = [
    {last: 'Andrus', first: 'Aaron'},
    {last: 'Masa', first:'Manny'},
    {last: 'Tanda', first: 'Tamanda'}
];