here's some stuff that CDO doesn't tell you about but is very useful

setKeyValue('value name', value); <- sets a value for some variable that is (gonna use some non professional descriptions) 'online', meaning the value stays the same for ALL users and even after restarts. this makes laggy multiplayer possible(emphasis on laggy).
ex: setKeyValue('globalHighScore', 100);
another:
getKeyValue('value', function(e){console.log(e);});
use the callback to access a value of a keyvalue
ex:
getKeyValue('globalHighScore',function(e){
//the high score is 'e' because thats what i put in the callback
console.log('the high score is '+e);
});
and another:
cursor(MODE);
really useful for UI if you want to do something like change the cursor to a hand when it's over a button
modes include:
HAND
ARROW <-(default)
nvm just search up a list
ex: cursor(HAND);

finally:
.includes('string');
CDO tells you about this except i think it's verrrrrrry underrated and almost no one uses it, even for things this should be used for.
basically you do something like:
if(string.includes('e')){
console.log('string includes e');
}
veeeeeerrrrrryyyy underrated

ok hope you found these super speshul stuffs that code.org doesn't tell you about useful

i guess includes is nice but it's nothing compared to regexes all the other stuff i'd recommend otherwise if your searching for a specific word just use indexOf it's should be faster from what i remember but if that's the function you prefer they both basically do the same thing but just thought i should let you know also for regex certain functions don't work because it's es5 but match is still included and if i am correct i think indexOf can also take a form of regex not sure about includes though since i never really saw a purpose for it

Chat