JS
challenger
Home
JavaScript Practice
JavaScript objects
Multiply all object values by x
Multiply all object values by x
Write a function that takes an object (a) and a number (b) as arguments. Multiply all values of 'a' by 'b'. Return the resulting object.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console