MCPcopy Create free account
hub / github.com/appacademy/Module-1-Resources / iterateThroughWord

Function iterateThroughWord

w1/d2/loop.js:64–69  ·  view source on GitHub ↗
(word)

Source from the content-addressed store, hash-verified

62//animal2.length === 5
63
64function iterateThroughWord(word) {
65 for (let i = 0; i < word.length; i++) {
66 let letter = word[i];
67 console.log("index", i, "value", letter);
68 }
69}
70
71// iterateThroughWord('cats');
72// iterateThroughWord('rhino');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected