Skip to content

Codespace studious dollop www997v74p9h5ppq #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .learn/resets/01-Hello-World/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Your code here
5 changes: 5 additions & 0 deletions .learn/resets/02-What-is-a-function/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function sum(number1,number2) {
return number1 + number2;
}

// Your code here
6 changes: 6 additions & 0 deletions .learn/resets/03-Call-a-function/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function calculateArea(length, width) {
return length * width;
}

// Your code below this line:

6 changes: 6 additions & 0 deletions .learn/resets/04-Defining-vs-Calling-a-function/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Define the function called "multi" that expects 2 parameters:


// Don't edit anything below this line
let returnValue = multi(7,53812212);
console.log(returnValue);
7 changes: 7 additions & 0 deletions .learn/resets/05-Anonymous-functions/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
let multi = function(a,b) {
return a*b;
}
// Don't edit anything ABOVE this line


// Your code here
6 changes: 6 additions & 0 deletions .learn/resets/06-Arrow-function/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function multi(a,b) {
return a * b;
}

// Don't edit anything below this line
console.log(multi(324234,47))
8 changes: 8 additions & 0 deletions .learn/resets/07-Function-that-returns/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
let dollarToEuro = function(dollarValue) {
return dollarValue * 0.89;
}
let euroToYen = function(euroValue) {
return euroValue * 124.15;
}
///***** YOUR CODE BELOW ↓ ******///

6 changes: 6 additions & 0 deletions .learn/resets/08-Function-parameters/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Your code goes here:



///*** Do not edit below this line ***///
console.log(renderPerson('Bob', '05/22/1983', 'green', 23, 'male'));
8 changes: 8 additions & 0 deletions .learn/resets/09-Array-Methods/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
let names = ['John', 'Kenny', 'Tom', "Bob", 'Dilan'];

function sortNames(arr) {
// Your code goes here

}

console.log(sortNames(names));
6 changes: 6 additions & 0 deletions .learn/resets/10-Remove-vowels/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Your code goes here


// Work above this line; do not change code below
let str = "John";
console.log(rapid(str));
1 change: 1 addition & 0 deletions exercises/01-Hello-World/app.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// Your code here
console.log("Hello World");
1 change: 1 addition & 0 deletions exercises/02-What-is-a-function/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ function sum(number1,number2) {
}

// Your code here
let superduper = sum(3445324, 53454423)
4 changes: 3 additions & 1 deletion exercises/03-Call-a-function/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ function calculateArea(length, width) {
}

// Your code below this line:

let squareArea1 = calculateArea(4,4);
let squareArea2 = calculateArea(2,2);
let squareArea3 = calculateArea(5,5);
3 changes: 3 additions & 0 deletions exercises/04-Defining-vs-Calling-a-function/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Define the function called "multi" that expects 2 parameters:
function multi (a,b) {
return a*b;

}

// Don't edit anything below this line
let returnValue = multi(7,53812212);
Expand Down
1 change: 1 addition & 0 deletions exercises/05-Anonymous-functions/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ let multi = function(a,b) {


// Your code here
console.log(multi(324234, 47))
4 changes: 2 additions & 2 deletions exercises/06-Arrow-function/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function multi(a,b) {
return a * b;
const multi = (a,b) => {
return a*b
}

// Don't edit anything below this line
Expand Down
2 changes: 1 addition & 1 deletion exercises/07-Function-that-returns/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ let euroToYen = function(euroValue) {
return euroValue * 124.15;
}
///***** YOUR CODE BELOW ↓ ******///

console.log(euroToYen(dollarToEuro(137)))
3 changes: 3 additions & 0 deletions exercises/08-Function-parameters/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Your code goes here:
function renderPerson(name, birthDate, eyesColor, age, gender) {
return (`${name} is a ${age} years old ${gender} born in ${birthDate} with ${eyesColor} eyes`)

}


///*** Do not edit below this line ***///
Expand Down
2 changes: 1 addition & 1 deletion exercises/09-Array-Methods/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ let names = ['John', 'Kenny', 'Tom', "Bob", 'Dilan'];

function sortNames(arr) {
// Your code goes here

return arr.sort();
}

console.log(sortNames(names));
23 changes: 23 additions & 0 deletions exercises/10-Remove-vowels/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
// Your code goes here
/*const rapid = (str) => {
str = str.replace('a', '');
str = str.replace('e', '');
str = str.replace('i', '');
str = str.replace('o', '');
str = str.replace('u', '');

str = str.toUpperCase();

return str
}*/
const rapid = (str) => {
let vocals = ['a', 'e', 'i', 'o', 'u'];

for (let letter of str) {
if (vocals.includes(letter) === true) {
str = str.replace(letter, '');
}
}
str = str.toUpperCase();

return str

}

// Work above this line; do not change code below
let str = "John";
Expand Down
Loading