this function uses the parseInt function to return a proper integer or an error code if it can't. So this demo should return NaN for the Not an Int (x1235) and The int for the 00001235. I think that N..
this will split the string into an array based on the spaces inbetween words. you can split it based on any character, for example if you had words in csv comma format you could use the second example..
this is a template that i use while testing flat html files, if you add it to a server it will live reload. this does seem to cause issues depending on the site that is is used on, like reloading all ..
generate a random whole number function with test buttons
using xcopy and a loop i found this is a good way to make sure that changes in one file make their way across to another location using a windows batch file. this one loops every 5 seconds, i think yo..
get the average of a array of numbers
this is good if you want to change a form checkbox with the default and show a fancy tick or something else, this will still check the checkbox so will work normally as the form element
here is an example showing a variable defined within a function showing how it becomes a global variable if not defined with var
unshift is the opposite of push where push adds to the end of an array unshift will add to the start of the array.
this is a version of a dom ready or document ready that does not require jquery
you can see what is stored in local storage by typing this into your browser console. localStorage Adding something You can add something to local storage by using the setItem function.
pop is the opposite of push and will remove the last item in an array, it also returns the value so you can assign it to a variable