Skip to content

Instantly share code, notes, and snippets.

View craigwendel's full-sized avatar

Craig Wendel craigwendel

View GitHub Profile
@craigwendel
craigwendel / index.html
Created June 14, 2017 20:21
Customer Database
<!DOCTYPE html>
<html>
<head>
<title>Customer Database</title>
<link rel="stylesheet" href="styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Internal Company Directory</h1>
<div class="customers">
@craigwendel
craigwendel / index.html
Created June 14, 2017 20:08
Customer Database
<!DOCTYPE html>
<html>
<head>
<title>Customer Database</title>
<link rel="stylesheet" href="styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Internal Company Directory</h1>
<div class="customers">
@craigwendel
craigwendel / main.js
Created June 13, 2017 20:57
Blackjack Hand Calculator
/*
Implement a Blackjack hand value calculator.
Open up the `index.html` file and your console
to watch the assertions pass as you write your code.
Also remember, that the parameter `hand` will be an array, so
you'll need to parse through that first before you can start to
write your logic.
*/
@craigwendel
craigwendel / main.js
Created June 12, 2017 19:35
Objects, scope, hoisting, compartmentalization and object notation
/**************************************************************************************
ANSWER THE FOLLOWING QUESTIONS
**************************************************************************************
/**************************************************************************************
# 1
Warm up
Scope
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Form Builder</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
@craigwendel
craigwendel / index.html
Created June 9, 2017 15:02
Form Builder
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Form Builder</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
@craigwendel
craigwendel / main.js
Created June 7, 2017 21:19
Arrays and Loops - Individual Assessment
// 1.
// Without logging the values, list the value of `sports` and `total`
var sports = ['soccer', 'baseball'];
var total = sports.push('football', 'swimming');
// A:
// sports = <your answer>
['soccer', 'baseball','football','swimming'];
// total = <your answer>
4
@craigwendel
craigwendel / index.html
Created June 6, 2017 18:24
Intro to JavaScript Assessment - Functions and Complex Expressions
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Intro to JavaScript Assessment</title>
</head>
<body>
<script type="text/javascript" src="main.js"></script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Intro to JavaScript Assessment</title>
</head>
<body>
Intro to JS
<script type="text/javascript" src="main.js">