Mongoose Mongo Shell Practice Using the `mongo` shell, you will perform all possible CRUD operations on a database collection of candies.
React React Context In a typical React application, data is passed top-down (parent to child) via props, but this can be cumbersome for certain types of props (e.g. locale preference, UI theme) that are required by many components within an application.
React Higher Order Components Higher order components, or HOC's, are simply functions that take React Components as arguments, or return them as values, or both.
Node This is a Test Write a mocha/chai test for a function called `getLongestString` that does the following: ...
JavaScript MissingNo. Warm up Write a function that returns the missing number from an unsorted array of numbers. * Create a function that identifies the range of numbers within a given array. * Have the function return all numbers missing within the range. Example: function findMissingNo([3,5,4,8,1,2,7]){ //Find
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]
JavaScript Catch Me If you Can 1a) Write a function that returns the sum of two numbers. Throw an error if either argument is not of the data type number: function sum(x, y){ //check data types first and throw error return x + y; } 1b) Call the sum function inside a try block using "1" and
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
Angular Final Project So here it is. The big sha-bang. You are going to build a full-stack final project. You will pick your own theme. Here is how you should spend your time (Due to the fact that your first job will most likely be front-end work): * 50% Angular * 30% HTML/CSS/Bootstrap/
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 Convert Decimal Write a JavaScript function to convert a decimal number to binary, hexadecimal or octal number. Example outputs: console.log(dec_to_bho(654321,'B')); "10011111101111110001" console.log(dec_to_bho(654321,'H')); "9fbf1" console.log(dec_to_bho(654321,'O')); "2375761"
Exercise Compare Dates Write a JavaScript function to compare dates (i.e. greater than, less than or equal to). Your function will take 2 dates as arguments and will console.log whether the first date is >, <, or = the second date. (You can format this however you want by using the actual "greater than"
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
JavaScript JavaScript and jQuery This tutorial will cover how to do things in JavaScript and jQuery. We will first go through how to do something with JavaScript, then show how to do the same thing with jQuery. Why would we use jQuery or JavaScript? JavaScript is, frankly, what makes websites cool. It allows a
JavaScript End of the world! Create a web page with a timer that starts at 20 seconds and counts down to 0. When it reaches 0, display some large text that says, "The end of the world has come upon us" or something of the sort. (Feel free to get creative, too - change the
JavaScript Quiz: Javascript Coding Questions: Question: What is the value of foo? var foo = 10 + '20'; Question: How would you make this work? add(2, 5); // 7 add(2)(5); // 7 Question: What value is returned from the following statement? "i'm a lasagna hog".split("").reverse().join(""); Question: What is the value of
Exercise Alpha & Omega - Multi-dimensional Array Create a multi dimensional array that has 100 grid elements. If the column is an odd number print the Omega symbol: var omega = '\u03A9'; If the column is an even number print the Alpha symbol: var alpha = '\u03B1' The end result should look similar to this: α Ω
JavaScript Building a Simple Web Game (Approaching a larger project) This article is going to explain how to approach building a larger project as well as how to build a simple RPG web game Wireframing It is always good to wireframe your website on paper (or in Photoshop/etc) before you start laying things out in code. Just draw up
Exercise The Princess Is In Another Castle Requirements: * Create a class for a player that has the following properties: * name of type String * totalCoins of type Number * status of type String (options are Powered Up, Big,Small, and Dead) * hasStar of type Boolean (Is a star active?) * setName of type function - Has a parameter called namePicked