Javascript examples for Data Type:var
Create a variable called number, assign the value 50 to it, and display it.
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var number = 50;/*from w w w. j a v a2 s .c om*/ document.getElementById("demo").innerHTML = number; </script> </body> </html>