MCPcopy Index your code
hub / github.com/braziljs/eloquente-javascript / addItem

Function addItem

src/client/code.mjs:229–234  ·  view source on GitHub ↗
(container, link)

Source from the content-addressed store, hash-verified

227}
228
229function addItem(container, link) {
230 let li = container.appendChild(document.createElement("li"))
231 let a = li.appendChild(document.createElement("a"))
232 a.href = "../" + link
233 a.textContent = link.replace(/^code\//, "")
234}
235
236function findExercise(id, chapter) {
237 let parts = id.split(".")

Callers 1

selectChapterMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected