From 6472309eb1945869a146b24ad8c6522fc431ab4c Mon Sep 17 00:00:00 2001 From: Iris Flystam Date: Fri, 20 Sep 2024 11:49:47 +0200 Subject: [PATCH] basic requirements --- .husky/pre-commit | 4 ---- .idea/.gitignore | 3 +++ .idea/js-fundamentals-variables.iml | 9 +++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ src/advanced/swap.js | 4 ++-- src/assignment.js | 4 ++-- src/declaration.js | 3 ++- 9 files changed, 38 insertions(+), 9 deletions(-) delete mode 100644 .husky/pre-commit create mode 100644 .idea/.gitignore create mode 100644 .idea/js-fundamentals-variables.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml 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 {