Public
Edited
May 12, 2020
1 fork
Importers
12 stars
Insert cell
Insert cell
log
Insert cell
{
/* consoleHook is needed to ensure that the console hook is executed before this cell.
This is only relevant if you have to control the execution order on a page reload.
When playing around and debugging a notebook this is generally not necessary */
consoleHook;
console.log(1);
console.log(2);
console.log(3);
console.log(4);
console.log(5);
console.log(6);
console.log(7);
console.log(8);
console.log(9);
console.log(10);
console.log('My log message')
console.log({prop1: 'My log object'});
}
Insert cell
Insert cell
logTail = n => log.slice(-n)
Insert cell
logTail(5)
Insert cell
Insert cell
Insert cell
logTable(10)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more