What will be the output of the following code?
<script>
let age = 20;
let result = age>18 ? 'Great' : 'Not so great' ;
document.write(result); </script> |
(A) Great
(B) Not so great
(C) true
(D) None of the above
All Replies
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.