Update errata.md

This commit is contained in:
Karan
2021-12-21 18:05:52 +05:30
committed by GitHub
parent ebab9a9644
commit 71167a0810
+4 -4
View File
@@ -9,16 +9,16 @@ The example of an `if` statement here explains how a single `=` sign is always t
Incorrect code is: Incorrect code is:
``` ```
if(hobby == "coding"){ if(hobby == "coding"){
console.log("** I love coding too! **"); console.log("** I love coding too! **");
} else { } else {
console.log("** Can you teach me that? **"); console.log("** Can you teach me that? **");
} }
``` ```
Correct code is: Correct code is:
``` ```
if(hobby = "coding"){ if(hobby = "coding"){
console.log("** I love coding too! **"); console.log("** I love coding too! **");
} else { } else {
console.log("** Can you teach me that? **"); console.log("** Can you teach me that? **");
} }
``` ```