Public
Edited
Jun 15, 2023
Insert cell
Insert cell
width
Insert cell
/////html(`<a href="dsfdf">`+'gffdg'+ `</a>`)
html([`<a href="dsfdf">`+x+ `</a>`])
Insert cell
html`<a href="dsfdf"> ${x} gffdg </a> `
Insert cell
x='abc'
Insert cell
document.body.textContent
Insert cell
document.body.childNodes[0].textContent
Insert cell
document.body.children[0].textContent
Insert cell
document.body.children[0].children[0].textContent
Insert cell
document.body.children[0].children[1].textContent
Insert cell
document.body.children[0].children[0].outerHTML
Insert cell
document.body.children[0].children[0].innerHTML
Insert cell
document.body.children[0].children[0]
Insert cell
document.getElementById( "cell-4")
Insert cell
getSelection()
Insert cell
xpathToExecute='//div'
Insert cell
nodesSnapshot = document.evaluate(xpathToExecute, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null )
Insert cell

{ for ( var i=0 ; i < nodesSnapshot.snapshotLength; i++ ){
console.log( nodesSnapshot.snapshotItem(i) );
}
}
Insert cell
window
Insert cell
document
Insert cell
globalThis
Insert cell
this
Insert cell
function f() {
console.log(54)
//debugger;
//debugger; SHOULD BE COMMENED OUT usually ?
}
Insert cell
f()
Insert cell
$
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more