on-internet
← Community

Javascript how do you use the / symbol

Stack Overflow ·

How to detect a mobile device using jQuery I found this and I was wondered what the / sign meant in the if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) { // some code.. } code.

Comments

Sign in or sign up to comment and upvote.

No comments yet.