Javascript Demo
console.log("hello world");
var msg = "this is a message in a variable";
console.log(msg);
function logIt(output) {
console.log(output);
}
logIt(msg);
// using logIt
logIt(msg)
logIt("Hello Students!");
logIt(2022)
function logItType(output) {
console.log(output, "is a(n)", typeof output);
}
logItType("hello"); // String
logItType(2020); // Number
logItType([1, 2, 3]); // Object is generic for this Array, which similar to Python List
var testhtml = "Hello World";
$$.html(testhtml); // prints as html