Maria's Computer explainer

Aim of the puzzle: Find the key information in a word problem.
Walk through of solution: Maria wants a function that figures out the total number of pixels on her computer monitor.

Knowing that the resolution of the screen is the number of pixels in width and height, a function that multiplies the width and height together will return the total number of pixels on the screen.
Sample code solution:

import {width, height} from 'monitor.resolution';

function totalPixels(w, h) {
    return w * h;
}

console.log(width + ' by ' + height);
console.log(totalPixels(width, height));

Javascript Concepts: Functions