From e00825ab53d552cda1efcce5051ae63d98485aa9 Mon Sep 17 00:00:00 2001 From: John Woolbright Date: Thu, 28 Mar 2024 09:14:48 -0500 Subject: [PATCH 1/7] added comment for method section of exercises --- objects-and-math/exercises/ObjectExercises.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/objects-and-math/exercises/ObjectExercises.js b/objects-and-math/exercises/ObjectExercises.js index 03cc68bc3a..9a50cbdecc 100644 --- a/objects-and-math/exercises/ObjectExercises.js +++ b/objects-and-math/exercises/ObjectExercises.js @@ -15,8 +15,10 @@ let salamander = { // After you have created the other object literals, add the astronautID property to each one. +// Add a move method to each animal object + // Create an array to hold the animal objects. // Print out the relevant information about each animal. -// Start an animal race! \ No newline at end of file +// Start an animal race! From 68dc67b242b373bce376af577e7305e2ed8d0256 Mon Sep 17 00:00:00 2001 From: John Woolbright Date: Thu, 28 Mar 2024 09:50:32 -0500 Subject: [PATCH 2/7] updated style href link --- css/exercises/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/exercises/index.html b/css/exercises/index.html index 69f47f9239..922e8e3885 100644 --- a/css/exercises/index.html +++ b/css/exercises/index.html @@ -4,7 +4,7 @@ CSS Exercises - + From fd02b7cab9265570f24549e2c92f889a6de99faf Mon Sep 17 00:00:00 2001 From: John Woolbright Date: Thu, 28 Mar 2024 10:09:05 -0500 Subject: [PATCH 3/7] removed reference to repl.it --- user-input-with-forms/exercises/index.html | 4 ---- 1 file changed, 4 deletions(-) diff --git a/user-input-with-forms/exercises/index.html b/user-input-with-forms/exercises/index.html index 24dad6a4a5..00a01b39ed 100644 --- a/user-input-with-forms/exercises/index.html +++ b/user-input-with-forms/exercises/index.html @@ -9,10 +9,6 @@ - - -

WARNING: This ONLY works in replit if this "result" page is opened in its own window. Click the icon that shows a box with an arrow coming out of it. -

From c3f51a4cabac12f6a22051c9f6ae5e0161e6b573 Mon Sep 17 00:00:00 2001 From: John Woolbright Date: Thu, 23 May 2024 09:51:32 -0500 Subject: [PATCH 4/7] added package.json with readline-sync --- arrays/exercises/package.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 arrays/exercises/package.json diff --git a/arrays/exercises/package.json b/arrays/exercises/package.json new file mode 100644 index 0000000000..65adf18429 --- /dev/null +++ b/arrays/exercises/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "readline-sync": "^1.4.10" + } +} From 90158cc18aa47e4b9bf17380e741fba9cdb00f8b Mon Sep 17 00:00:00 2001 From: John Woolbright Date: Thu, 23 May 2024 10:08:32 -0500 Subject: [PATCH 5/7] added more detail for part 3 of studio --- functions/studio/studio-functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/studio/studio-functions.js b/functions/studio/studio-functions.js index d4c291ed1a..175fc7f439 100644 --- a/functions/studio/studio-functions.js +++ b/functions/studio/studio-functions.js @@ -17,7 +17,7 @@ // 4. Return the reversed number. // 5. Be sure to print the result returned by the function to verify that your code works for both strings and numbers. Do this before moving on to the next exercise. -// Part Three: Complete Reversal +// Part Three: Complete Reversal - Create a new function with one parameter, which is the array we want to change. The function should: // 1. Define and initialize an empty array. // 2. Loop through the old array. From c8e53bc4af3964c1b52d82db7b55ed9bd182fdde Mon Sep 17 00:00:00 2001 From: John Woolbright Date: Thu, 23 May 2024 10:14:36 -0500 Subject: [PATCH 6/7] fixed spacing on comments --- more-on-functions/exercises/raid-a-shuttle.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/more-on-functions/exercises/raid-a-shuttle.js b/more-on-functions/exercises/raid-a-shuttle.js index 507a67ccc5..db663e4177 100644 --- a/more-on-functions/exercises/raid-a-shuttle.js +++ b/more-on-functions/exercises/raid-a-shuttle.js @@ -25,7 +25,7 @@ console.log("Fuel level: " + checkFuel(fuelLevel)); console.log("Hold status: " + holdStatus(cargoHold)); /* Steal some fuel from the shuttle: - * / + */ //a). Define an anonymous function and set it equal to a variable with a normal, non-suspicious name. The function takes one parameter. This will be the fuel level on the shuttle. @@ -36,7 +36,7 @@ console.log("Hold status: " + holdStatus(cargoHold)); //d). Decide where to best place your function call to gather our new fuel. /* Next, liberate some of that glorious cargo. - * / + */ //a). Define another anonymous function with an array as a parameter, and set it equal to another innocent variable. @@ -47,11 +47,10 @@ console.log("Hold status: " + holdStatus(cargoHold)); //d). Don’t get hasty, matey! Remember to test your function. /* Finally, you need to print a receipt for the accountant. Don’t laugh! That genius knows MATH and saves us more gold than you can imagine. - * / + */ //a). Define a function called irs that can take fuelLevel and cargoHold as arguments. //b). Call your anonymous fuel and cargo functions from within irs. -//c). Use a template literal to return, "Raided _____ kg of fuel from the tanks, and stole ____ and ____ from the cargo hold." - +//c). Use a template literal to return, "Raided _____ kg of fuel from the tanks, and stole ____ and ____ from the cargo hold." \ No newline at end of file From f473f592842a9f5cbbfedecf748a2aac82a610e2 Mon Sep 17 00:00:00 2001 From: John Woolbright Date: Thu, 23 May 2024 10:37:49 -0500 Subject: [PATCH 7/7] fixed typo --- more-on-functions/studio/part-three-number-sorting-easy-way.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/more-on-functions/studio/part-three-number-sorting-easy-way.js b/more-on-functions/studio/part-three-number-sorting-easy-way.js index 386cde1da8..bfa9748a32 100644 --- a/more-on-functions/studio/part-three-number-sorting-easy-way.js +++ b/more-on-functions/studio/part-three-number-sorting-easy-way.js @@ -5,4 +5,4 @@ let nums3 = [200, 5, 4, 10, 8, 5, -3.3, 4.4, 0]; //Sort each array in ascending order. -//Sort each array in decending order. +//Sort each array in descending order.