Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
JS Bin // source http://jsbin.com/diyasak
<!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>
// 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
You can’t perform that action at this time.