MCPcopy Index your code
hub / github.com/marijnh/Eloquent-JavaScript / opt

Function opt

src/client/code.mjs:216–221  ·  view source on GitHub ↗
(value, label)

Source from the content-addressed store, hash-verified

214}
215
216function opt(value, label) {
217 let node = document.createElement("option")
218 node.value = value
219 node.textContent = label || value
220 return node
221}
222
223function getChapter(number) {
224 for (let i = 0; i < chapterData.length; i++)

Callers 2

constructorMethod · 0.85
selectChapterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected