0

how to get value in javascript like in c++ - "cout<<;cin>>a;"??

plz answer

11th Sep 2018, 6:13 PM
Sanjay Balasubramanian
Sanjay Balasubramanian - avatar
3 Réponses
0
You could try prompt: var input = prompt("hello"); Alternatively you could use html tags like input or text fields etc. and access their content through javascript
11th Sep 2018, 6:22 PM
Aaron Eberhardt
Aaron Eberhardt - avatar
0
how to activate js and c++ in atom editor
11th Sep 2018, 6:30 PM
Sanjay Balasubramanian
Sanjay Balasubramanian - avatar
0
Well, basically Atom is (just) an editor. This means you can edit source files, but may not compile or execute your program. If you're working on a C++ project you can use g++ (a part of gcc) a c++ compiler to compile you program. For js I'd recommend you to simply create a html and js file and open it locally in your web browser, in case you're doing web design.
11th Sep 2018, 6:41 PM
Aaron Eberhardt
Aaron Eberhardt - avatar