Skip to content

Instantly share code, notes, and snippets.

@preetsohal
Last active January 6, 2016 04:28
Show Gist options
  • Save preetsohal/21993f221240588d75e8 to your computer and use it in GitHub Desktop.
Save preetsohal/21993f221240588d75e8 to your computer and use it in GitHub Desktop.
Gurpreet Singh
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>
@preetsohal
Copy link
Author

it will be better ;)

@bentongreen
Copy link

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');

@preetsohal
Copy link
Author

thanks Banton :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment