Skip to content

1 - 5 finished #569

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion 01_helloWorld/helloWorld.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const helloWorld = function() {
return ''
return 'Hello, World!'
};

module.exports = helloWorld;
2 changes: 1 addition & 1 deletion 02_addNumbers/addNumbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function addNumbers() {

let result;

result = "a" + "b"; // <------ EDIT THIS LINE
result = a + b; // <------ EDIT THIS LINE

return result;
}
Expand Down
6 changes: 3 additions & 3 deletions 03_numberChecker/numberChecker.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
function numberChecker(number) {
if (number === 6) {
return true;
} else {
if (number >= 10) {
return false;
} else {
return true;
}
}

Expand Down
10 changes: 5 additions & 5 deletions 04_mathEquations/mathEquations.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const a = 1 - 1 // Freebie!!! This is the answer to "one minus one"
const b = "one plus eight"
const c = "22 times three"
const d = "the *remainder* of 5/4"
const e = "the variable 'b' minus 17"
const f = "the sum of the previous five variables"
const b = 1+8 // "one plus eight"
const c = 22 * 3 //"22 times three"
const d = 5%4 // "the *remainder* of 5/4"
const e = b-7 // "the variable 'b' minus 17"
const f = a+b+c+d+e // "the sum of the previous five variables"

// Do not edit below this line
module.exports = {a, b, c, d, e, f}
7 changes: 5 additions & 2 deletions 05_joinStrings/joinStrings.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@

// Add your code right below, good luck!

const firstName = "Carlos";
const lastName = "Stevenson";
const thisYear = 1965;
const birthYear = 1947;



const greeting = "Hello! My name is " + firstName + lastName + " and I am " + (thisYear - birthYear) +"years old."

// Do not change this
module.exports = {
Expand Down