Recently, I was trying to parse the time portion of a date. I used split() to chop time string into hours, minutes, seconds, etc. and attempted to parseInt() the hour portion of the split array like so: <!DOCTYPE html> <html> <body> <button onclick="myFunction()">Click me to parse the current time</button> <p id="demo"></p> function myFunction() { var [...]