MCPcopy Create free account
hub / github.com/codemistic/Web-Development / getRandomColor

Function getRandomColor

Counter/Counter.js:22–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20});
21
22function getRandomColor() {
23 var letters = '0123456789ABCDEF';
24 var color = '#';
25 for (var i = 0; i < 6; i++) {
26 color += letters[Math.floor(Math.random() * 16)];
27 }
28 return color;
29}

Callers 1

Counter.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected