MCPcopy Create free account
hub / github.com/AyushSaini00/60minuteJavaScript / updateUI

Function updateUI

mainApp.js:11–27  ·  view source on GitHub ↗
(projects)

Source from the content-addressed store, hash-verified

9 });
10
11function updateUI(projects){
12 projects.forEach(({name, code, index}) => {
13
14 const listItem = document.createElement('li');
15
16 listItem.innerHTML = `
17 <span class="project-number">${index}</span>
18 <a href="/${name}/index.html" class="project-name">
19 ${projectNameFormater(name)}
20 </a>
21 <a href=${code} class="container-links">
22 Code
23 </a>
24 `;
25 list.appendChild(listItem);
26 });
27}
28
29function projectNameFormater(name){
30 return name

Callers 1

mainApp.jsFile · 0.70

Calls 1

projectNameFormaterFunction · 0.85

Tested by

no test coverage detected