We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8e922a commit aaeb98fCopy full SHA for aaeb98f
Day-38/index.html
@@ -0,0 +1,11 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+<head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Js Conditionals</title>
7
+</head>
8
+<body>
9
+ <script src="script.js"></script>
10
+</body>
11
+</html>
Day-38/script.js
@@ -0,0 +1,10 @@
+if (2 < 3) {
+ alert(2<3); // true
+}
+
+let first_name = "Harsh";
+if (first_name === "Harsh") {
+ alert(`Yep, your name is ${first_name}.`); // Yep, your name is Harsh.
+} else {
+ alert("Nah, you're not Harsh.");
0 commit comments