diff --git a/lectureExamples/jsIntro.html b/lectureExamples/jsIntro.html new file mode 100644 index 0000000000000000000000000000000000000000..99397f09ce7c35c41d74b999a2d60607ffbbde18 --- /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>