We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9be46f6 commit 04bafd5Copy full SHA for 04bafd5
Conditional-ternary-operator.js
@@ -0,0 +1,7 @@
1
+// Work same as if else condition but a little bit different from that like in conditional ternary we cannot write more than one conditions and there
2
+// syntax are totally different.
3
+
4
+let today = "Monday";
5
+let className;
6
+className = "Yes it is" + " " + (today === "Monday" ? "True" : "False") + " today is game class";
7
+console.log(className);
0 commit comments