From ceede61e2843c6f90ca289995d83e26ae75d0a8e Mon Sep 17 00:00:00 2001 From: TMajlu Date: Tue, 1 Oct 2024 13:11:39 +0200 Subject: [PATCH 1/2] Thomas Nielsen --- .idea/.gitignore | 3 +++ .idea/vcs.xml | 4 ++++ src/assignment.js | 3 ++- src/declaration.js | 5 ++++- 4 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/vcs.xml 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/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..d843f34 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/assignment.js b/src/assignment.js index a2f2b63..4dbf582 100644 --- a/src/assignment.js +++ b/src/assignment.js @@ -3,9 +3,10 @@ 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..3e43aa0 100644 --- a/src/declaration.js +++ b/src/declaration.js @@ -2,7 +2,9 @@ // // // TODO: 1. Declare the variables firstName and age so that the tests pass - +const firstName = 'Jane' +const age = 35 +console.log() // do not edit below this line let firstNameExport = '' try { @@ -20,3 +22,4 @@ module.exports = { firstName: firstNameExport, age: ageExport } + From e02e88f2fb879655a90adf81b46e550e338fea3b Mon Sep 17 00:00:00 2001 From: TMajlu Date: Mon, 7 Oct 2024 15:14:18 +0200 Subject: [PATCH 2/2] Thomas Nielsen --- .idea/.gitignore | 3 +++ .idea/js-fundamentals-variables.iml | 9 +++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ src/assignment.js | 3 ++- src/declaration.js | 4 +++- src/extensions/types.js | 20 ++++++++++---------- 8 files changed, 47 insertions(+), 12 deletions(-) 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/.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/assignment.js b/src/assignment.js index a2f2b63..4dbf582 100644 --- a/src/assignment.js +++ b/src/assignment.js @@ -3,9 +3,10 @@ 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..e147a2f 100644 --- a/src/declaration.js +++ b/src/declaration.js @@ -2,7 +2,9 @@ // // // TODO: 1. Declare the variables firstName and age so that the tests pass - +const firstName = 'Jane' +const age = 35 +console.log() // do not edit below this line let firstNameExport = '' try { diff --git a/src/extensions/types.js b/src/extensions/types.js index ce48367..853e741 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(9) // 2. Pick a real number -const aReal = pick(0) +const aReal = pick(4) // 3. Pick a string -const aString = pick(3) +const aString = pick(6) // 4. Pick an array -const anArray = pick(1) +const anArray = pick(7) // 5. Pick a (simple) number -const aNumber = pick(0) +const aNumber = pick(3) // 6. Pick an object -const anObject = pick(1) +const anObject = pick(8) // 7. Pick false -const imFalse = pick(0) +const imFalse = pick(10) // 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 = {