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

Function next

assets/js/codingJokes.js:6–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5//for new joke
6function next() {
7 //To get the clicking sound
8 var aud = document.getElementById("click");
9
10 aud.volume = .56; aud.play();
11
12 //to generate random number
13 ran = Math.floor(Math.random() * jokes.length);
14
15 //to put new jokes on screen
16 document.getElementById("joke").innerText = jokes[ran];
17
18}
19
20//To share on whatsapp
21function share() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected