Popcorn Hack #2 —
Create a length of a list and print it in console.log()
Create a variable called “list” or “my_list_2”
Create a list of numbers or words in the brackets [] Exp: let your_list = [3, 7, 9, 21];
Create a const length = your_list.length;
After all of that, finally print it out in console.log() Exp: console.log(your_list);
%%js
let list = [1, 2, 3, 4, 5, 6, 8, 10, 7]; // create an variable
const length = list.length; // create a const length
console.log(list.length); // print out your list in console
console.log(list.join(", "))
<IPython.core.display.Javascript object>