Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/mdn/web-components-examples
/ random
Function
random
life-cycle-callbacks/main.js:61–63 ·
view source on GitHub ↗
(min, max)
Source
from the content-addressed store, hash-verified
59
remove.disabled = true;
60
61
function
random(min, max) {
62
return
Math.floor(Math.random() * (max - min + 1) + min);
63
}
64
65
add.onclick =
function
() {
66
// Create a custom square element
Callers
1
main.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected