+ 2
Is this ok to get write a time (J.S.); why not use this instead of ...
Why not use ___(my code) instead of: Function fun(){ var d = new Date(); var hour = d.getHours() var min = ....... Instead of listing it like that ^ , why not just do it like this... is there any problem with it - ? https://code.sololearn.com/WQXFOrRsBoNu/?ref=app
2 Respostas
+ 2
You can do it your way if you want local time.
But you can do the other way if you only want to return hours or minutes.
+ 1
got it ✔️