skip to Main Content

Javascript – The programming logic

I'm following an online Javascript course for beginners. One exercise is about Math.floor(), and the example given is: get floorNum(x){ let _x = x; _x = Math.floor(x); return _x; } My question is: why not just put "return Math.floor(x)" in…

VIEW QUESTION
Back To Top
Search