MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / genArray

Function genArray

assets/js/bubbleSort.js:28–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28function genArray() {
29 cont.innerHTML = "";
30
31 for (var i = 0; i < N; i++) {
32 ARR[i] = Math.floor(Math.random() * 100 + 1);
33 divs[i] = document.createElement("div");
34 cont.appendChild(divs[i]);
35 divs[i].style = `margin:0% 0.2%; width:60px; height:${ARR[i]}px; background-color: #40E0D0;`;
36 }
37}
38
39function sorting() {
40 genArray();

Callers 4

bubbleSort.jsFile · 0.85
changeNFunction · 0.85
changeSpeedFunction · 0.85
sortingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected