Home / Javascript Tips Generated By ChatGPT / Understanding Math Object for Basic Math Operations in Javascript Use JavaScript’s Math object for operations like rounding numbers. Source Code console.log(Math.round(4.7)); // 5 console.log(Math.floor(4.7)); // 4 console.log(Math.ceil(4.1)); // 5