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
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- this is where our title and dependencies go --> | |
<title>Class 1 Demo!</title> | |
<style> | |
li { | |
background: orange; | |
} | |
</style> |
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
cool js stuff |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Welcome to 101</title> | |
</head> | |
<body> | |
<h1>Guessing Game!</h1> | |
<script> | |
var user = prompt('what is your name?'); | |
console.log(user); |
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
/* ============================================================= | |
DEMO: create a function that will log all items in an array | |
================================================================ */ | |
// declare our function | |
function logItems() { | |
// create an array of items | |
var items = ['some item', 'another item', 'final item']; | |
// loop through each of the items in the array |