May 2018
Intermediate to advanced
376 pages
9h 22m
English
After reading lesson 6, you will
None of these methods would be extremely difficult to implement, but they are tasks that are used enough to warrant inclusion in the standard library.
Let’s say you’re writing a function that tells the current time. Using an instance of the Date object, you can get the current hour and minutes with the getHours and getMinutes methods, respectively:
function getTime() { const date = new Date(); return date.getHours() ...Read now
Unlock full access