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
using a css transform will not effect other elements that surround it, so when you mouse over this div (or press it on your phone/tablet) it should scale to 1.5 times its original size.
just a bootstrap card format with header and footer elements, makes a piece of content neat easily
$dot_location = strpos($my_string,".");
basic usage for the str_replace php function str_replace ( mixed $search , mixed $replace , mixed $subject)
just in case you need to create a CURRENT_TIMESTAMP using php, this formats the current date into the following.
ok so lets say we have a string like this: Hi there im a string. I am also part of the same string. And we want to shorten the above string into just: Hi there im a string. This is what i wo..
this function will show you the percentage difference between two numbers
Lets say that i have a list like this: <div class='my-awesome-list'><div class='a-list-item'>yay im a list item</div><div class='a-list-item'>yay im a list item</div><..