MCPcopy Create free account
hub / github.com/Open-Bootcamp/JavaScript-Basico / cambiarTexto

Function cambiarTexto

sesion-14-js-html/eventos/index.js:11–19  ·  view source on GitHub ↗
(nuevoTexto, color)

Source from the content-addressed store, hash-verified

9})
10
11function cambiarTexto(nuevoTexto, color) {
12 const evento = new CustomEvent("cambioTexto", {
13 detail: {
14 texto: nuevoTexto,
15 color
16 }
17 })
18 hTexto.dispatchEvent(evento)
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected