InterviewSolution
Saved Bookmarks
| 1. |
How to check whether entered value is NaN in JavaScript? |
|
Answer» To detect a mobile device, LET’s say Android device, USE the navigator.userAgent.match. Here, we have set it in a function: Android: function() { RETURN navigator.userAgent.match(/Android/i); },For IOS: iOS: function() { return navigator.userAgent.match(/iPhone|iPad/i); }, |
|