reorganizing
This commit is contained in:
Vendored
BIN
Binary file not shown.
-1
@@ -1 +0,0 @@
|
||||
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
//alert("Saying hi from a different file!");
|
||||
prompt("Hi! How are you?");
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<script type="text/javascript">
|
||||
alert("Hi there!");
|
||||
</script>
|
||||
</html>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
<html>
|
||||
<script type="text/javascript" src="ch1_alert.js"></script>
|
||||
</html>
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
let status = "new";
|
||||
let scared = true;
|
||||
if (status === "new") {
|
||||
console.log("Welcome to JavaScript!");
|
||||
if (scared) {
|
||||
console.log("Don't worry you will be fine!");
|
||||
} else {
|
||||
console.log("You're brave! You are going to do great!");
|
||||
}
|
||||
} else {
|
||||
console.log("Welcome back, I new you'd like it!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user