JS
challenger
Home
JavaScript Practice
JavaScript fundamentals
Round a number to 2 decimal places
Round a number to 2 decimal places
Write a function that takes a number (a) as argument. Round a to the 2nd digit after the decimal point. Return the rounded number
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console