JavaScript JS Ternary Operater
<script>
function gfg() {
//JavaScript to illustrate
//Conditional operator
let PMarks = 40
let result = (PMarks > 39)?
"Pass":"Fail"; //Syntax:- (condition) ? do this if true : do this if false
document.write(result);
}
gfg();
</script>
Dangerous Dunlin