Block or Report
Block or report geopic
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
Random-number-generation function, u...
Random-number-generation function, useful for luck-based code 1function findChoice() {
2// local var generating random number, then console.log() to check it works
3var rng = Math.floor(Math.random() * 100);
4console.log(rng);
5// function determining action to take depending on range of number generated
-
Simple auto-updating clock in Javasc...
Simple auto-updating clock in Javascript 1function displayClock() {
2setInterval(function(){ document.getElementById('clock').innerHTML = new Date().toLocaleTimeString(); }, 1000);
3};
45displayClock();
-
charcodeplus3.js
charcodeplus3.js 1// get string as argument
2function switchCharCode(str) {
3// split string
4str = str.split('');
5
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.