How to Create a Js File
- Launch “Notepad.” Video of the Day.
- Type “myfile.js” and click the “Save” button. Now you have created a .js file. By adding,
1+ +”2″+3 results 6 1+”2″+3 results “123” AS The unary + operator converts its operand to Number type. +”2″ is a way to cast the string “2” to the number 2 . The remain is a simple addition.