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]
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]
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
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
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/
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