(ブラウザの)開発ツールでの対話例
> 2*3
<- 6
> window
<- Window ▶{frames: Window, postMessage: ƒ, blur: ƒ, focus: ƒ, close: ƒ, …}
> window.document
<- ▶#document
> document
<- ▶#document
> document.head
<- ▶<head>...</head>
> document.getElementsByTagName('h4')
<- (4)
▶ [h4#section, h4#javascript, h4#a-, h4#b-div, section: h4#section, javascript: h4#javascript, a-: h4#a-, b-div: h4#b-div]
> var x1= document.getElementsByTagName('h4')[0]
<- undefined
> x1
<- <h4 id="section">概要</h4>
> x1.textContent="ふぁいおえjふぁいううぇふぃあううぇふぃあうwhf"
<- "ふぁいおえjふぁいううぇふぃあううぇふぃあうwhf"