Skip to content

Instantly share code, notes, and snippets.

# BernieGoll/index.html

Created Jun 14, 2018
JS Bin // source http://jsbin.com/diyasak
 JS Bin
 // Bernie G --------------------- // Exercise: Property Path Eval /* function propertyValueAt() { name: 'joe', } */ // Bernie G --------------------- // Exercise: Sum Nested Arrays let sumNested = [1, 2, 3, 4,[5, 6, [7],[8]]] { } // Bernie G --------------------- // Exercise: Word Count function wordCount(sentence) { let sum = } function multiply(num1, num2) { let product = num1 * num2; return product; } (multiply(1,2)); (multiply(2,4)); function add(num1, num2) { let added = num1 + num2; return added; } console.log(add(13, (multiply(3,6)))); // Bernie G --------------------- // Exercise: Anagram Tester // Bernie G --------------------- // Exercise: Analyze Prices // Bernie G --------------------- // Exercise: Fizz Buzz function fizzBuzz(n) { if(n <= 0) { return ''; } } if(n % 3) { } // Bernie G --------------------- // Exercise: Object Oriented Programming - Car function Car() { this.getSpeed = getSpeed; this.setSpeed = setSpeed; this.stop = stop; } const car = new Car(); getSpeed() { if(getSpeed >0) { } return true; } setSpeed() { if(setSpeed > 0) return true; } stop() { if(stop > 0) return true; } console.log(car.getSpeed(); console.log(car.setSpeed()); console.log(car.stop());
to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.