To check what data type something has in javascript is not always the easiest. The language itself provides an operator called typeof for that which works in a straightforward way. Typeof returns a string of what a values data type is, so for an object "object" is returned and for a string "string". However javascripts..
Tag Archives: Arrays
It was a great many years ago ECMAScript 5 came out to javascript now, and brought not only lots of exciting news, but also a great deal of new array methods. Methods that does everything from looping through, changing, filtering and extracting values from them. Below is a list over all the array methods that..
An array in javascript is something that could be described as a list of values. Until now we've only talked about single values like strings and numbers that can be stored into variables. But sometimes you want to be able to store multiple values in the same place, like in a variable. For example if..