Last active
January 6, 2016 04:28
-
-
Save preetsohal/21993f221240588d75e8 to your computer and use it in GitHub Desktop.
Gurpreet Singh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html> | |
<head> | |
<title> class demo</title> | |
</head> | |
<body> | |
<h1> name/adress</h1> | |
<p>sam hamm,511 boren ave n</p> | |
<script> | |
var unicorn =prompt('what is your name?'); | |
alert('hi there, '+ unicorn + '!!!!'); | |
</script> | |
<h1> name </h1> | |
<p> Gurpreet singh</p> | |
<h1>biography</h1> | |
<p>30 years old male.originaly from India and lived in seattle for 12 years</p> | |
<h1>List o Experience</h1> | |
<li>car technician</li> | |
<li>general contractor</li> | |
<h1>list of Education</h1> | |
<li>automotive technology</li> | |
<script> | |
var wizard=prompt('what is your name?'); | |
alert('hello' + wizard + 'you are a wizard'); | |
</script> | |
</body> | |
</html> | |
your script wont work the way it is currently.
you have Gurpreet written in so it's not actually using the var gurpreet you made.
the correct way to do it would be something like
var wizard = prompt('question');
alert('hello' + wizard + 'you are a wizard');
thanks Banton :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it will be better ;)