0

Please can anyone help me in learning javascript.

We have cout n cin commands in c++ like that any commands to get information from user

11th Jul 2017, 1:17 PM
Irfan ali
Irfan ali - avatar
4 odpowiedzi
+ 2
https://www.w3schools.com/js/js_popup.asp ^You can have it prompt you for input. However, remember that you're often using this with websites. JavaScript can play off of your HTML/CSS elements, so you can have normal HTML text/input/etc... and have JS use that as its input. Read through HTML/CSS/JavaScript together, and you'll be able to use all of the above to accomplish your tasks easily.
11th Jul 2017, 1:27 PM
AgentSmith
+ 1
you an get information from the user in pure javascript with prompt() var name = prompt("Enter yout name: \n"); also you can use HTML textbox or input and get their value
11th Jul 2017, 1:27 PM
Andrés04_ve
Andrés04_ve - avatar
+ 1
correct: document.getElementById('demo').innerHTML answer: you can view or edit <div id="demo"> this </div> using that js function why: document.getElementById(id) returns an html element with that id element.innerHTML access to between its html tags then: document.getElementById('demo').innerHTML access to the inner html of an element with id='demo'
12th Jul 2017, 1:03 AM
Andrés04_ve
Andrés04_ve - avatar
0
What is document.getElementByid(demo).inner html
12th Jul 2017, 12:56 AM
Irfan ali
Irfan ali - avatar