menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Productivity News

>

Useful Jav...
source image

Dev

4d

read

186

img
dot

Image Credit: Dev

Useful JavaScript tips and tricks that you may not be aware of 💻👨‍💻

  • JavaScript is a widely used web programming language.
  • Automatic Semicolon Injection (ASI) in JavaScript: JavaScript uses semicolons to indicate the end of a line, but they are optional due to Automatic Semicolon Injection.
  • Non-sequential Array keys and indexes: JavaScript allows setting elements by array index even if the array is not up to that index yet.
  • Finding the OS type using JavaScript: The window.navigator object can provide information about the visitor's browser OS details.
  • How to detect whether a mobile browser is being used for browsing: JavaScript can be used to detect mobile browsers by checking the userAgent property.

Read Full Article

like

11 Likes

For uninterrupted reading, download the app