Update errata.md

This commit is contained in:
Karan 2021-12-21 18:05:52 +05:30 committed by GitHub
parent ebab9a9644
commit 71167a0810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,16 +9,16 @@ The example of an `if` statement here explains how a single `=` sign is always t
Incorrect code is:
```
if(hobby == "coding"){
console.log("** I love coding too! **");
console.log("** I love coding too! **");
} else {
console.log("** Can you teach me that? **");
console.log("** Can you teach me that? **");
}
```
Correct code is:
```
if(hobby = "coding"){
console.log("** I love coding too! **");
console.log("** I love coding too! **");
} else {
console.log("** Can you teach me that? **");
console.log("** Can you teach me that? **");
}
```