i am running following simple Javascript code in jupyter lab notebook using magic command
%%js
alert(‘hi’);
var a = 10;
var b = 20;
var c = a + b;
element.text©
and its throwing error
Javascript Error: element.text is not a function
but its working fine in classic jupyter notebook. Do we need to add any jar or configuration into jupyter lab for running this code successfully