Javascript Ternary Conditional Operator
Javascript Ternary Conditional Operator
Conditional operator (or) ternary operator symbol - ?, :
<html>
<head>
<title>
welcome
</title>
</head>
<body>
<script>
var a,b,c;
a=100;
b=50;
c=a>b?a:b;
document.write("The value of c is:"+c);
</script>
</body>
</html>
0 Comments