Warmup Array Shuffler Write a function that takes an array as a parameter and returns a new array with the contents randomly "shuffled". Example shuffle([1,2,3,4,5]); //returns [3,5,4,1,2]
Warmup Choose your own adventure game Write a choose your own adventure game. Keep it limited in scope (since this is just a warmup), and have a few different possible storylines for the user to follow. Use the npm readline-sync package to get input from the user. In terminal, from the directory of your project: npm
Warmup There is no Spoon In order to practice translating real-world objects into code, look around the room and pick 10 things you can see. Then write them as 10 JavaScript objects. * Create 10 objects from things you see. * Each object should have at least 3 keys (properties). * Choose varying data types for your properties
Warmup Makin' Money Without using Number.prototype.toLocaleString, write a function that takes an integer as an argument and formats it to look like a currency amount, including a dollar sign, commas, and a decimal (the last two digits will be the cents). E.g.: formatMoney(123456789) // returns $1,234,567.89 formatMoney(
Warmup Palindrome Finder Write a function that accepts a string as an argument and returns true if the string is a palindrome (the string is the same forward and backward), or false if it is not. A string is still considered a palindrome despite letter capitalization, spaces, or punctuation. E.g.: isPalindrome("Star
Warmup camelCase Write a function that takes a string input (which contains either spaces, underscores, or hyphens/dashes between words, but no combination of the two) and turn it into the camelCase version of that string.
Warmup Array 123 Given an array of ints, return true if the array contains 1, 2, 3 somewhere (in that order). array123([1, 1, 2, 3, 1]); // true array123([1, 1, 2, 4, 1]); // false array123([1, 2, 2, 1, 5, 3]); // false
Warmup Fix Teen Given 3 int values, a b c, return their sum. However, if any of the values is a teen -- in the range 13 to 19 inclusive -- then that value counts as 0, except 15 and 16 do not count as a "teens" and should therefore still be added.
Warmup Count Code Write a function that returns how many times the string "code" appears in array. function countCode(arr) { } //Output: // countCode(["code", "code", "cool"]) returns 2 // countCode(["code", "code", "cool", "code"]) returns 3 // countCode(["coe", "ode", "cool", "pool"]) returns 0 Step it up Write a function that returns the number of times
Warmup First Bootstrap Warmup Using Bootstrap, create a site that uses the following bootstrap components: * Navbar * 3 Buttons of various colors & sizes * An tag that is centered on the page * 2 Glyphicons of any kind, anywhere on the page
Warmup Bare Bones HTML Page - now with Styles! Your task is to create a bare bones HTML page, and this time include a link to a stylesheet. You'll need to also create the stylesheet file so there are no broken links. Your page should include a title tag, a first-level header that says anything you want, and a
Warmup Bare Bones HTML Page Create a "Hello World" HTML page that includes the most bare-bones HTML skeleton. Double-click on the HTML file to open it in your browser. It should only show the words "Hello, world!" as text on the screen. If you can't remember what the basic pieces of an HTML document are,
Warmup Warmup - Mongoose Schema Practice Create a set of Mongoose Schemas for a Reddit-style feed to practice good structure in modeling your data. You'll need to include the following: * Users * Posts * Comments on the posts (these only go one level deep, no comments of comments) * Tags to organize posts Consider the following: You need to
Programming Principles Warmup - Racecar Write a function that takes a string and returns true if that string is a palindrome (the same forward and backward) and false if it is not. isPalindrome("bob"); // true isPalindrome("baz"); // false **Extra credit**: Make it so spaces, capital letters, and punctuation don't stop something from being a palindrome.
Problem Solving Warmup - Squirrel Play The squirrels in Palo Alto spend most of the day playing. In particular, they play if the temperature is between 60 and 90 (inclusive). Unless it is Summer, then the upper limit is 100 instead of 90. Given an int temp and a boolean isSummer, return true if the squirrels
Static Websites Color Grid From Scratch Without using the bootstrap grid system, create a website that looks like this: You don't have to worry about making it responsive at this point. Here are the colors: * #F5C6D6 * #EE2E84 * #85CFD8 * #8DC63F * #E76E34 Hints: * It's easiest to get the even white "spacing" by actually using a thick, white border
Node Warmup - Server by Memory Your job is to use what you have learned and spin up a NodeJs/Express server with a MongoDB that works. Requirements: * GET endpoint /cars * POST endpoint /cars * PUT endpoint /cars/:carId * DELETE endpoint /cars/:carId * MongoDB name should be cars * GET endpoint /person * POST endpoint /person * PUT endpoint /person/
JavaScript Merge Sort Using the url below and looking at its explanation and code example, create your own Javascript Merge Sort. Don't find a javascript solution on the Internet. Try and analyze the code in that website to solve the problem. http://interactivepython.org/runestone/static/pythonds/SortSearch/TheMergeSort.html
JavaScript Prime Numbers Write a JavaScript function to get all prime numbers from 0 to a specified number.
JavaScript Warmup - Roman Numerals Write a JavaScript function that Convert an integer into a Roman Numeral in javaScript.
JavaScript Warmup - Greatest Common Divisor Write a JavaScript function to find the GCD (greatest common divisor) of more than 2 integers. Test Data: console.log(gcd_more_than_two_numbers([3,15,27])); console.log(gcd_more_than_two_numbers([5,10,15,25])); Output : 3 5
Exercise Filter Search Create an Angular or HTML app that has an search box (input box). You will have an array stored somewhere that has at least 20 words. You can use this array and add/subtract from it as you wish: ['change', 'rack', 'world', 'file', 'cat', 'car', 'baccarat', 'dog', 'window', 'drink', 'computer',
JavaScript First Non Repeat Write a JavaScript function to find the first non-adjacently-repeated character in a given string. Examples: * "abbbbc" returns "a" because it's the first instance of a character that doesn't repeat adjacently. * "aaaabcd" returns "b". * "aacccddeefg" returns "c".
JavaScript Factorials Write a JavaScript program to calculate the factorial of a number. In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example, 5! = 5 x 4 x 3 x 2 x 1 = 120