TutorialKart
index.html
►
Run
Reset
<!DOCTYPE html> <html lang="en"> <body> <pre id="output"></pre> <script> var a = true; var b = true; var result = a || b; document.getElementById('output').innerHTML += '\n' + a + ' || ' + b + ' is ' + result; a = true; b = false; result = a || b; document.getElementById('output').innerHTML += '\n' + a + ' || ' + b + ' is ' + result; a = false; b = true; result = a || b; document.getElementById('output').innerHTML += '\n' + a + ' || ' + b + ' is ' + result; a = false; b = false; result = a || b; document.getElementById('output').innerHTML += '\n' + a + ' || ' + b + ' is ' + result; </script> </body> </html>