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 29fe501 commit c1d48f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Javascript/If_else.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
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);
}
if (gender === "Male") {
console.log("Hello, " + firstName); }

0 comments on commit c1d48f1

Please sign in to comment.