A Pen by Kevin Colten on CodePen.
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
'use strict'; | |
$(document).ready(function() { | |
$('form').on('submit', function (e) { | |
e.preventDefault(); | |
var todoText = $(this).find('#todo').val(); | |
createTodo(todoText); | |
$(this).find('#todo').val(''); | |
}); |
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
//Front End Intermediate Section 2 Midterm | |
//Directions: Write your answers in the space provided after the word answer. | |
//1. What is a data type that can have only the values true or false? Provide an example. | |
//Answer: | |
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
function Car(color) { | |
this.color = color; | |
this.tires = 4; | |
this.drive = function() { | |
console.log("VVRRROOOMMM!!!") | |
} | |
} | |
function Driveway(maxCars) { |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<!--Let browser know website is optimized for mobile--> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
<title>Laura + Kevin</title> | |
<!--Import Google Icon Font--> | |
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> |
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
'use strict'; | |
var prompt = require('prompt'); | |
prompt.start(); | |
var colors = require('colors/safe'); | |
var board = [ | |
] |
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
function displayTime() { | |
var d = new Date(); | |
var h = d.getHours(); | |
var m = d.getMinutes(); | |
var s = d.getSeconds(); | |
var meridiem = "AM"; | |
if( (h > 7) && (h < 19) ) { | |
// document.body.style.backgroundColor="#80d4ea"; | |
$('body').css('background-color', "#80d4ea"); |
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
'use strict'; | |
var prompt = require('prompt'); | |
prompt.start(); | |
prompt.get(['word'], function(err, result) { | |
var word = result['word']; | |
var vowelIndex = word.indexOf('a'); | |
if ( (word.indexOf('e') > -1 && word.indexOf('e') < vowelIndex) || (vowelIndex === -1) ) { |
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
.DS_Store |