Skip to content

Instantly share code, notes, and snippets.

View bnates's full-sized avatar

Brian Nations bnates

  • Seattle, WA
View GitHub Profile
@bnates
bnates / index.html
Created November 5, 2019 21:45
Brian Nations
<!DOCTYPE html>
<html>
<head>
<!-- this is where our title and dependencies go -->
<title>Class 1 Demo!</title>
<style>
li {
background: orange;
}
</style>
@bnates
bnates / cool.js
Created November 5, 2019 20:12
cool js
cool js stuff
<!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);
@bnates
bnates / loop_function_demo.js
Created May 13, 2017 23:13
Function and For Loop Demo
/* =============================================================
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