The browser storage localStorage is not available. Either your browser does not support it or you have disabled it or the maximum memory size is exceeded. Without localStorage your solutions will not be stored.
If you want to round a number, you can use the
let a = Math.round(5.49); let b = Math.round(4.5); let c = Math.floor(5.99); let d = Math.ceil(4.01);
Math.round()rounds a number to the nearest integer,
Math.floor()rounds a number downwards to the nearest integer and
Math.ceil()rounds a number upwards to the nearest integer. Therefore, the variables
dall get the value
Write a function
round100that rounds a number to the nearest hundred.