maaike's code samples

This commit is contained in:
brightboost
2021-09-04 21:22:51 +02:00
parent 0189d40676
commit b89b9dfb3f
70 changed files with 2737 additions and 0 deletions
+13
View File
@@ -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!");
}
+2
View File
@@ -0,0 +1,2 @@
//alert("Saying hi from a different file!");
prompt("Hi! How are you?");
+5
View File
@@ -0,0 +1,5 @@
<html>
<script type="text/javascript">
alert("Hi there!");
</script>
</html>
+3
View File
@@ -0,0 +1,3 @@
<html>
<script type="text/javascript" src="ch1_alert.js"></script>
</html>