From 0a3889df79f7c9835da7c35797dc5a045bbc7147 Mon Sep 17 00:00:00 2001 From: Andrej Rasevic <andrej@rasevicengineering.com> Date: Wed, 1 Jun 2022 09:53:09 -0400 Subject: [PATCH] adding live lecture example --- lectureExamples/jsIntro.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lectureExamples/jsIntro.html diff --git a/lectureExamples/jsIntro.html b/lectureExamples/jsIntro.html new file mode 100644 index 0000000..99397f0 --- /dev/null +++ b/lectureExamples/jsIntro.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html> +<body> + + + +<script> + console.log('Hello cmsc335!') + var firstName = "Testudo" + { + let firstName = "Lenny" + console.log(firstName) + } + let middleName = "Kermit" + const lastName = "Bias" + console.log(`Hi, my name is: ${firstName} ${lastName}`) + + function add(num1, num2) { + return num1 + num2 + } + + console.log(add(5,3)) + +</script> + +</body> +</html> -- GitLab