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/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/js-fundamentals-variables.iml b/.idea/js-fundamentals-variables.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/js-fundamentals-variables.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..6f29fee --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..fd0d796 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/advanced/swap.js b/src/advanced/swap.js index 7908a03..992b47e 100644 --- a/src/advanced/swap.js +++ b/src/advanced/swap.js @@ -1,5 +1,5 @@ -let a = 8 -let b = 10 +const a = 8 +const b = 10 // TODO: Swap the values of a and b without changing lines 1 and 2; extra points if you can do it without using a temporary variable 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..ae6b0e0 100644 --- a/src/declaration.js +++ b/src/declaration.js @@ -2,7 +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 = '' try {