Chore(DPxAI): Fix format

This commit is contained in:
Oumaima Fisaoui 2024-09-03 15:06:56 +00:00
parent c5a9980f52
commit 2b2c86b17b
1 changed files with 6 additions and 6 deletions

View File

@ -46,7 +46,7 @@ console.log("I keep trying , I can't give up! ");
// Output: I keep trying, I can't give up! // Output: I keep trying, I can't give up!
``` ```
#### **`Prompt Example`**: #### `**Prompt Example**:`
"As a beginner, how do I include special characters in a string in JavaScript? Give me simple examples too." "As a beginner, how do I include special characters in a string in JavaScript? Give me simple examples too."
@ -56,7 +56,7 @@ Remember the `let` keyword used to declare new variables.
> Note that we can't have multiple variables with the same identifier otherwise JS wouldn't know which one is which. > Note that we can't have multiple variables with the same identifier otherwise JS wouldn't know which one is which.
Redeclaring a variable will crash ! If you redeclare a variable, it will crash!
But it is still possible to use the = (assignment operator) to change its value! But it is still possible to use the = (assignment operator) to change its value!
@ -66,7 +66,7 @@ But it is still possible to use the = (assignment operator) to change its value
> Also you may find online old code using var. We are trying to get rid of `var`s since 2015. It's ancient syntax and it was pretty problematic. Never use it! If you see code using it, try to find a more recent example. That one is outdated. > Also you may find online old code using var. We are trying to get rid of `var`s since 2015. It's ancient syntax and it was pretty problematic. Never use it! If you see code using it, try to find a more recent example. That one is outdated.
#### **`Prompt Example`**: #### `**Prompt Example**:`
- "As a beginner, what is the difference between let and `const` in JavaScript?" - "As a beginner, what is the difference between let and `const` in JavaScript?"
- "As a beginner, how do I reassign a value to an already declared variable in JavaScript?" - "As a beginner, how do I reassign a value to an already declared variable in JavaScript?"