diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100644 index 6b54e0b..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx eslint src diff --git a/src/assignment.js b/src/assignment.js index a2f2b63..bfd8721 100644 --- a/src/assignment.js +++ b/src/assignment.js @@ -3,9 +3,9 @@ let firstNumber = 10 firstNumber = 0 // TODO: 1. Set the value of firstNumber below so the tests pass - +firstNumber = 20 // TODO: 2. Change the code below so that the tests pass -const secondNumber = 0 // edit this value +const secondNumber = 42 // edit this value // do not edit the exported object. module.exports = { diff --git a/src/declaration.js b/src/declaration.js index 80daf64..46e6950 100644 --- a/src/declaration.js +++ b/src/declaration.js @@ -2,6 +2,8 @@ // // // TODO: 1. Declare the variables firstName and age so that the tests pass +const firstName = 'Jane' +const age = 35 // do not edit below this line let firstNameExport = '' diff --git a/src/extensions/types.js b/src/extensions/types.js index ce48367..3892672 100644 --- a/src/extensions/types.js +++ b/src/extensions/types.js @@ -35,34 +35,34 @@ function pick(n) { } // 1. Pick true using the pick function - by changing 0 to pick your answer -const imTrue = pick(0) +const imTrue = pick(CHOICES.length - 2) // 2. Pick a real number -const aReal = pick(0) +const aReal = pick(CHOICES.indexOf(3.14)) // 3. Pick a string -const aString = pick(3) +const aString = pick(CHOICES.indexOf('hey')) // 4. Pick an array -const anArray = pick(1) +const anArray = pick(7) // 5. Pick a (simple) number -const aNumber = pick(0) +const aNumber = pick(CHOICES.indexOf(-12)) // 6. Pick an object -const anObject = pick(1) +const anObject = pick(CHOICES.length - 3) // 7. Pick false -const imFalse = pick(0) +const imFalse = pick(CHOICES.length - 1) // 8. Pick a BigInt -const imBigInt = pick(1) +const imBigInt = pick(5) // 9. Pick undefined -const imUndefined = pick(0) +const imUndefined = pick(2) // 10. Pick null -const imNull = pick(0) +const imNull = pick(1) // Do not edit below this line module.exports = {