Javascript examples for Data Type:var
Use a single var keyword to create three variables
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var firstName = "T", lastName = "J", age = 35; document.getElementById("demo").innerHTML = firstName + " " + lastName + " is " + age; </script>/* w w w . ja v a 2 s. c om*/ </body> </html>