I\'m new to JavaScript and I\'m trying to write a code which calculates the time elapsed from the time a user logged in to the current time.
Here is my code:-
var hours = 0; if(minutes == 59 && seconds == 59) { hours = hours + 1; minutes = '00'; seconds == '00'; }