Created
June 14, 2018 15:23
-
-
Save BernieGoll/28cdce966d31449f5c0aa8e0141b3b8f to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/diyasak
This file contains 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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
// 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()); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">// 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()); | |
</script></body> | |
</html> |
This file contains 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
// 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()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment