Skip to content

Main #255

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

Main #255

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
14 changes: 7 additions & 7 deletions src/extensions/more-data-types.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
// TODO: Replace the empty string in the lines below using Javascript with the correct data types

// 1. Set this variable to be null
const nullVariable = ''
const nullVariable = null;

// 2. Set this variable to be true
const trueVariable = ''
const trueVariable = true;

// 2. Set this variable to be the opposite of the trueVariable (ie. false);
const falseVariable = ''
const falseVariable = !trueVariable;

// 3. Set this variable to be undefined
const undefinedVariable = ''
const undefinedVariable = undefined;

// 4. get the typeof each of the above variables
// hint you can use typeof variable to return a string of the variable type
const typeOfTrueVariable = ''
const typeOfFalseVariable = ''
const typeOfUndefinedVariable = ''
const typeOfTrueVariable = typeof trueVariable;
const typeOfFalseVariable = typeof falseVariable;
const typeOfUndefinedVariable = typeof undefinedVariable;

// do not edit the exported object.
module.exports = {
Expand Down
13 changes: 6 additions & 7 deletions src/numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,21 @@ const numThree = 32
// NOT myAnswer = 336

// 1. Set this variable to numOne added to numTwo
const numOnePlusNumTwo = NaN

const numOnePlusNumTwo = numOne + numTwo;
// 2. Set this variable to numThree multiplied by numTwo
const numThreeTimesNumTwo = NaN
const numThreeTimesNumTwo = numThree * numTwo;

// 3. Set this variable to numThree divided by numOne
const numThreeDividedByNumOne = NaN
const numThreeDividedByNumOne = numThree / numOne;

// 4. Set this variable to numThree minus numOne
const numThreeMinusNumOne = NaN
const numThreeMinusNumOne = numThree - numOne;

// 5. Set this variable to the sum of numOne, numTwo and numThree
const sum = NaN
const sum = numOne + numTwo + numThree;

// 6. Set this variable to the sum of (numOne, numTwo, numThree) divided by numOne
const numBytes = NaN
const numBytes = (numOne + numTwo + numThree) / numOne;

// do not edit the exported object.
module.exports = {
Expand Down
Loading