From f13836da108d025897ff051866e0a306f9102e16 Mon Sep 17 00:00:00 2001 From: ashu273k Date: Thu, 31 Oct 2024 15:59:50 +0530 Subject: [PATCH] If and else in javascript --- Javascript/If_else.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Javascript/If_else.js diff --git a/Javascript/If_else.js b/Javascript/If_else.js new file mode 100644 index 0000000..780d086 --- /dev/null +++ b/Javascript/If_else.js @@ -0,0 +1,5 @@ +let firstName = "Ashu"; +let gender = "Male"; +if (gender == "Male") { + console.log("Hello, " + firstName); +} \ No newline at end of file