Blog

EcmaScript 6 – Math.hypot()

Many know that JavaScript features vary from browser to browser. In the case of Firefox, there are many new features that have been proposed in EcmaScript 6. One of them is Math.hypot. This function adds up the squares of each argument passed and returns the square-root of that sum. In Read more…

By Chris West, ago
Blog

JavaScript – Range Array Function

A cool function that exists in Python is the range function which actually creates a list of numbers within the specified range. Once again, since I love JavaScript, here a quick imitation of this function: Of course, this is probably not a complete imitation, but as you can see it Read more…

By Chris West, ago
Blog

JavaScript – Create Stylesheet

At times you may need to add a dynamically created stylesheet to a page via JavaScript. You can do just that with the following function: It is important to note that the above function simply create the STYLE tag with the specified stylesheet content. It does not add it to Read more…

By Chris West, ago