25 lines
845 B
HTML
25 lines
845 B
HTML
<!DOCTYPE html>
|
|
<!--
|
|
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
|
Click nbfs://nbhost/SystemFileSystem/Templates/ClientSide/html.html to edit this template
|
|
-->
|
|
<html>
|
|
<head>
|
|
<title>test1</title>
|
|
<script type="text/javascript">
|
|
var num1 = 8;
|
|
//alert("1");
|
|
var num2 = 7;
|
|
//alert("2");
|
|
var answer = num1 + num2;
|
|
//alert("3");
|
|
console.log("The value of 'answer' is: " + answer + "<br/>");
|
|
console.log("The value of 'answer' > num1 is: " + (answer > num1) + "<br/>");
|
|
|
|
console.log(("John" > "abc") + "<br/>");
|
|
console.log(("John" > "John") + "<br/>");
|
|
console.log(("John" < "abc") + "<br/>");
|
|
</script>
|
|
|
|
</html>
|