How can we interact with the hardware of our devices using web codes? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 10

How can we interact with the hardware of our devices using web codes?

I had recently made 2 codes on the principle of vibration.What are the other ways we can interact with the hardware of our device? Answers are welcome and please give up vote for my question if you like it Checkout my codes and give upvotes if you like it!! Hope you like my Question and Codes... https://code.sololearn.com/WyU6ZgimnJxu/?ref=app https://code.sololearn.com/W1wiyRVwcl7T/?ref=app Thanks for viewing my Question

26th Dec 2017, 3:36 AM
Almas Cp
Almas Cp - avatar
3 Answers
+ 12
Well, Javascript is powerful enough to talk with your device hardware. But Javascript alone couldn't make it possible without help of an interpreter which is here a V8 engine written in c++ that powers both of your browser and webview. You can access almost everything ( such as battery, device motion, orientation, vibration, fingerprint, camera, microphone even recently implemented NFC and many more).
26th Dec 2017, 7:03 AM
Ranjan Bagri
Ranjan Bagri - avatar
+ 6
great
30th Dec 2017, 12:06 PM
adnan
adnan - avatar
+ 1
yes .its working ....thanksss ..
27th Dec 2017, 4:36 AM
Asharib Kamal
Asharib Kamal - avatar