Just need to know if this is the right way to display the javascript variable in output area of jupyter notebook.

20 views
Skip to first unread message

Manprit Singh

unread,
May 9, 2021, 4:22:14 AM5/9/21
to Project Jupyter
%%javascript

const num1 = 5;
const num2 = 3;

// add two numbers
const sum = num1 + num2;
element.append(sum)

Regards
Manprit Singh

Reply all
Reply to author
Forward
0 new messages