0

Anybody tell me how to num JavaScript in vscode. I mean which extension is used.

I saved my code in .js file but its not giving answer. Var status=1; Var msg; F (status==1){ Msg="online"; } Else if (stauts==2) { Msg="away"; } Else{ Msg="offline"; }

30th Jan 2022, 4:33 PM
Amazing Hub
4 Answers
+ 1
How to run it? Load the script in an HTML file then open it in a browser.
31st Jan 2022, 12:04 AM
Isho
Isho - avatar
0
How to open in browser
31st Jan 2022, 11:13 AM
Amazing Hub
0
Open your browser -> File -> Open -> Look for the HTML file.
31st Jan 2022, 5:13 PM
Isho
Isho - avatar
0
I put it on .js file in vscode but code isnt working
31st Jan 2022, 5:15 PM
Amazing Hub