Test JS IPYNB
Test of IPYNB notebook in the in-class lecture.
%%js
// assign variable
var intro = "My name is:";
console.log("variable: intro")
console.log(intro)
// seeing the type of this data
console.log("variable: intro check typeof")
console.log(typeof intro)
// add strings together
console.log("string concatenation: intro + Anvay!")
console.log(intro + " Anvay!")
<IPython.core.display.Javascript object>
%%js
var printProblem = "Here is the current math problem:"
var num1 = 10
var num2 = 2
console.log(printProblem + " " + num1 + " / " + num2 + " = " + num1 / num2)
<IPython.core.display.Javascript object>