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
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.
+ 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
+ 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'
0
What is document.getElementByid(demo).inner html