This file contains hidden or 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
| $(document).ready(function() { | |
| var block; | |
| function checkForWin() { | |
| var gameWon = false; | |
| $('[data-stack]').each(function () { | |
| if ($(this).data('stack') !== 1 && $(this).children().length === 4) { | |
| gameWon = true; | |
| } | |
| }); |
This file contains hidden or 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
| <!----> |
This file contains hidden or 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'; | |
| // https://www.youtube.com/watch?v=kPRA0W1kECg | |
| var LineByLineReader = require('line-by-line'); | |
| var prompt = require('prompt'); | |
| var wordList = new LineByLineReader('./sample_words.txt'); | |
| var words = []; |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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: | |