Skip to content

Commit

Permalink
Update If_else.js
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazePhenom authored and x0lg0n committed Nov 1, 2024
1 parent bb0dce8 commit 29fe501
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Javascript/If_else.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let firstName = "Ashu";
let gender = "Male";
const firstName = "Ashu"; //The firstname and gender of a person is fixed(constant) ie it cannot change so its much better to use the const variable as it then wont allow the variable value to be reassigned.
const gender = "Male";
if (gender == "Male") {
console.log("Hello, " + firstName);
}
}

0 comments on commit 29fe501

Please sign in to comment.