Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AyushSaini00/60minuteJavaScript
/ getHEX
Function
getHEX
Random-Linear-Gradient/app.js:9–13 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
7
8
//Generate HEX
9
function
getHEX(){
10
let
randomHex = Math.random().toString(16).substr(-6);
11
let
hexColor = `#${randomHex}`;
12
return
hexColor;
13
}
14
15
//Update the UI
16
function
updateUI(){
Callers
1
updateUI
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected