How do they know (or detect) what time it is? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do they know (or detect) what time it is?

I am reading a book about javascript and there is sample code there which greets you and message differently according to what time it is. I am just curious how it works. Does the javascript use my PC's time or on internet's?

11th May 2018, 9:00 AM
Joshuel Ernest Q. Simbulan
Joshuel Ernest Q. Simbulan - avatar
1 Answer
0
In simple ans : The browser uses your PC's time. If you wanna know more google Unix Time Stamp. Don feel like explaining. Its an interesting time.
11th May 2018, 9:24 AM
Akib
Akib - avatar