Refactor. JS time!
This commit is contained in:
24
Assignments/JavaScript/JavaScript_1/public_html/test1.html
Normal file
24
Assignments/JavaScript/JavaScript_1/public_html/test1.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user