Skip to content

Instantly share code, notes, and snippets.

Created November 17, 2015 20:56
Show Gist options
  • Save anonymous/f13693a619ef60dbe42f to your computer and use it in GitHub Desktop.
Save anonymous/f13693a619ef60dbe42f to your computer and use it in GitHub Desktop.
We Do: 11/17/2015 We Do - 11/17/2015 // source http://jsbin.com/sehote
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="We Do - 11/17/2015">
<title>We Do: 11/17/2015</title>
</head>
<body>
<p>For this exercise you'll only need the <strong>Javascript and Console tabs</strong> open.</p>
<h4>Steps:</h4>
<ol>
<li>Close all other tabs in your JSBin. Leave only the <strong>Javascript</strong> and <strong>Console</strong> tabs open</li>
<li>Follow the next step of instructions in the Javascript tab!</li>
</ol>
<script id="jsbin-javascript">
/**
WE DO: Variable, console.log(), prompt(), alert() Review
*/
// Variables
// We need to store a Name and an Adjective. How would we do this?
// prompt()
// Let's prompt the user for a Noun. How would we do this?
// console.log
// Let's put this all together! Print out the following using our stored variables:
// ____ is too _________ for ____.
// Name adjective noun
// alert()
// How could we do this with alert()?
// Challenge!
// How can we update this console.log() and alert() to use a variable for the entire string?
</script>
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html>
<html>
<head>
<meta name="description" content="We Do - 11/17/2015">
<title>We Do: 11/17/2015</title>
</head>
<body>
<p>For this exercise you'll only need the <strong>Javascript and Console tabs</strong> open.</p>
<h4>Steps:</h4>
<ol>
<li>Close all other tabs in your JSBin. Leave only the <strong>Javascript</strong> and <strong>Console</strong> tabs open</li>
<li>Follow the next step of instructions in the Javascript tab!</li>
</ol>
</body>
</html>
</script>
<script id="jsbin-source-javascript" type="text/javascript">/**
WE DO: Variable, console.log(), prompt(), alert() Review
*/
// Variables
// We need to store a Name and an Adjective. How would we do this?
// prompt()
// Let's prompt the user for a Noun. How would we do this?
// console.log
// Let's put this all together! Print out the following using our stored variables:
// ____ is too _________ for ____.
// Name adjective noun
// alert()
// How could we do this with alert()?
// Challenge!
// How can we update this console.log() and alert() to use a variable for the entire string?
</script></body>
</html>
/**
WE DO: Variable, console.log(), prompt(), alert() Review
*/
// Variables
// We need to store a Name and an Adjective. How would we do this?
// prompt()
// Let's prompt the user for a Noun. How would we do this?
// console.log
// Let's put this all together! Print out the following using our stored variables:
// ____ is too _________ for ____.
// Name adjective noun
// alert()
// How could we do this with alert()?
// Challenge!
// How can we update this console.log() and alert() to use a variable for the entire string?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment