diff --git a/curriculum/challenges/english/blocks/lecture-introduction-to-javascript/672d26385dbe73203c4dac81.md b/curriculum/challenges/english/blocks/lecture-introduction-to-javascript/672d26385dbe73203c4dac81.md index f0a82eb6427..612c83a8f90 100644 --- a/curriculum/challenges/english/blocks/lecture-introduction-to-javascript/672d26385dbe73203c4dac81.md +++ b/curriculum/challenges/english/blocks/lecture-introduction-to-javascript/672d26385dbe73203c4dac81.md @@ -90,7 +90,7 @@ Think about how JavaScript can change the webpage's content or styles without ne --- -JavaScript creates a new version of HTML for the page so you HTML code will run faster. +JavaScript creates a new version of HTML for the page so your HTML code will run faster. ### --feedback-- diff --git a/curriculum/challenges/english/blocks/lecture-the-var-keyword-and-hoisting/67329fbcfaf5ff5cdaa38a42.md b/curriculum/challenges/english/blocks/lecture-the-var-keyword-and-hoisting/67329fbcfaf5ff5cdaa38a42.md index bde3323839c..7bc03240d7e 100644 --- a/curriculum/challenges/english/blocks/lecture-the-var-keyword-and-hoisting/67329fbcfaf5ff5cdaa38a42.md +++ b/curriculum/challenges/english/blocks/lecture-the-var-keyword-and-hoisting/67329fbcfaf5ff5cdaa38a42.md @@ -9,7 +9,7 @@ dashedName: what-is-the-var-keyword-and-why-is-it-no-longer-suggested-to-use-it The `var` keyword in JavaScript is one of the original ways to declare variables. It has been part of the language since its inception and for many years it remained the primary method for creating variables. However as JavaScript evolved and developers gained more experience with the language, certain drawbacks of using `var` became apparent leading to the introduction of `let` and `const` in 2015. -When you declare a variable with `var`, it becomes function-scoped or globally-scoped. This means that if you declare a variable inside a function using `var` it's only accessible within that function. However if you declare it outside any function, it becomes a global variable accessible throughout your entire script. This behavior can sometimes lead to unexpected results and make your code harder to reason about. +When you declare a variable with `var`, it becomes function-scoped or globally-scoped. This means that if you declare a variable inside a function using `var` it's only accessible within that function. However if you declare it outside any function, it becomes a global variable accessible throughout your entire script. This behavior can sometimes lead to unexpected results and make your code harder to understand. A problem with `var` is that it allows you to redeclare the same variable multiple times without throwing an error. This can lead to accidental overwrites and make debugging more difficult. @@ -31,11 +31,11 @@ console.log(num); // 5 This behavior can lead to unintended variable leaks and make your code more prone to bugs. -Due to this issues, modern JavaScript development has largely moved away from `var` in favor of `let` and `const`. These keywords provide block scoping which aligns more closely with how scoping works in many other programming languages. +Due to these issues, modern JavaScript development has largely moved away from `var` in favor of `let` and `const`. These keywords provide block scoping which aligns more closely with how scoping works in many other programming languages. They also don't allow redeclaration within the same scope helping to prevent accidental overrides. -While `var` is still part of JavaScript and works in all browsers, it's generally recommended to use `let` and `const` in modern JavaScript development. They provide clear scoping rules help prevent common pitfalls and make your code's behavior more predictable. +While `var` is still part of JavaScript and works in all browsers, it's generally recommended to use `let` and `const` in modern JavaScript development. They provide clear scoping rules, help prevent common pitfalls, and make your code's behavior more predictable. # --questions-- diff --git a/curriculum/challenges/english/blocks/lecture-the-var-keyword-and-hoisting/67335f45489c5a11b71d0ed5.md b/curriculum/challenges/english/blocks/lecture-the-var-keyword-and-hoisting/67335f45489c5a11b71d0ed5.md index ccb208f4218..cc2fe49a5b3 100644 --- a/curriculum/challenges/english/blocks/lecture-the-var-keyword-and-hoisting/67335f45489c5a11b71d0ed5.md +++ b/curriculum/challenges/english/blocks/lecture-the-var-keyword-and-hoisting/67335f45489c5a11b71d0ed5.md @@ -49,7 +49,7 @@ let y = 10; These declarations are hoisted but they are not initialized and you can't access them before the actual declaration in your code. This is often referred to as the temporal dead zone. -Understanding hoisting can help you write cleaner, more predictable code. However, relying on hoisting can make your code harder to read and maintain. As a best practice, it's recommended to declare your variables at the top of their scope and your functions before you use them regardless of hoisting. This make your code's behavior more explicit and easier for other including your future self to understand. +Understanding hoisting can help you write cleaner, more predictable code. However, relying on hoisting can make your code harder to read and maintain. As a best practice, it's recommended to declare your variables at the top of their scope and your functions before you use them regardless of hoisting. This make your code's behavior more explicit and easier for others including your future self to understand. # --questions-- diff --git a/curriculum/challenges/english/blocks/lecture-understanding-form-validation/6733d3ab69e94b7df7ee91b0.md b/curriculum/challenges/english/blocks/lecture-understanding-form-validation/6733d3ab69e94b7df7ee91b0.md index 120509134cd..9a1be2b7ccc 100644 --- a/curriculum/challenges/english/blocks/lecture-understanding-form-validation/6733d3ab69e94b7df7ee91b0.md +++ b/curriculum/challenges/english/blocks/lecture-understanding-form-validation/6733d3ab69e94b7df7ee91b0.md @@ -43,7 +43,7 @@ The second attribute to control how a submission behaves is the `method` attribu HTTP stands for Hypertext Transfer Protocol and it is used to transfer data over the web. -HTTP methods are used to define the actions that can be performed on resources, such as `GET`, `POST`, `PUT`, `DELETE`, and so on. You will more about these methods in future lessons. +HTTP methods are used to define the actions that can be performed on resources, such as `GET`, `POST`, `PUT`, `DELETE`, and so on. You will learn more about these methods in future lessons. When a method is not set, the form will default to a `GET` request. A `GET` request is used to retrieve data from a specified resource without making any changes to it, and the parameters are typically appended to the URL in the form of a query string. diff --git a/curriculum/challenges/english/blocks/lecture-working-with-dates/6733aafb9c0802f66cc1e056.md b/curriculum/challenges/english/blocks/lecture-working-with-dates/6733aafb9c0802f66cc1e056.md index 6d5dd6111ca..a633843ee4b 100644 --- a/curriculum/challenges/english/blocks/lecture-working-with-dates/6733aafb9c0802f66cc1e056.md +++ b/curriculum/challenges/english/blocks/lecture-working-with-dates/6733aafb9c0802f66cc1e056.md @@ -26,7 +26,7 @@ Here is an example response you would see if you logged the value of `now` to th ```js const now = new Date(); console.log(now); -// Mon Mar 15 2021 14:30:00 GMT-0700 (Pacific Daylight Time) +// Mon Mar 15 2024 14:30:00 GMT-0700 (Pacific Daylight Time) ``` For the time, it is using the military time format, so `14:30` is `2:30 PM`. `GMT-0700` is the timezone offset, and `Pacific Daylight Time` is the timezone name. diff --git a/curriculum/challenges/english/blocks/workshop-recipe-tracker/66fbcf750a62784cf11f562d.md b/curriculum/challenges/english/blocks/workshop-recipe-tracker/66fbcf750a62784cf11f562d.md index 0186623c8b1..09e9e7c4386 100644 --- a/curriculum/challenges/english/blocks/workshop-recipe-tracker/66fbcf750a62784cf11f562d.md +++ b/curriculum/challenges/english/blocks/workshop-recipe-tracker/66fbcf750a62784cf11f562d.md @@ -11,7 +11,7 @@ Create an object named `recipe1`. Inside the `recipe1` object, create a `name` p Also inside the `recipe1` object, create an `ingredients` property with an array as the value. The array should have `spaghetti`, `Parmesan cheese`, `pancetta`, and `black pepper` inside it. -Create another `ratings` property with array value. The array should have `4`, `5`, `4`, and `5` inside it. +Create a `ratings` property with an array value. The array should have `4`, `5`, `4`, and `5` inside it. # --hints-- diff --git a/curriculum/challenges/english/blocks/workshop-recipe-tracker/66fbcf750a62784cf11f562e.md b/curriculum/challenges/english/blocks/workshop-recipe-tracker/66fbcf750a62784cf11f562e.md index f85d78cae38..ccda204f3fb 100644 --- a/curriculum/challenges/english/blocks/workshop-recipe-tracker/66fbcf750a62784cf11f562e.md +++ b/curriculum/challenges/english/blocks/workshop-recipe-tracker/66fbcf750a62784cf11f562e.md @@ -7,7 +7,7 @@ dashedName: step-4 # --description-- -Create another `recipe2` object with the following properties and values: +Create a `recipe2` object with the following properties and values: | Key | Value | | ----------- | ------- |