Please explain this Sololearners | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Please explain this Sololearners

https://code.sololearn.com/WrliGNkVyfYH/?ref=app Please explain the navigator statement in the code.

28th Apr 2019, 12:23 PM
Demon Clasher
Demon Clasher - avatar
3 Answers
+ 8
I hadnt come across that yet and was curious too so i googled it. Now im thinking of all the dofferent things i can do with it. Check out the link below. https://developer.mozilla.org/en-US/docs/Web/API/Navigator
28th Apr 2019, 12:52 PM
Ryan Lusby
Ryan Lusby - avatar
+ 7
Well a button input is defined in the html and its onclick event is used to invoke a function called fun_name() which then calls the vibrate method of the navigator UI object which vibrates your device for the given period of 1second (1000ms).
30th Apr 2019, 11:06 AM
Sonic
Sonic - avatar
0
You told the whole code but i wanted only navigator understanding but thanks!
1st May 2019, 2:52 PM
Demon Clasher
Demon Clasher - avatar