Posts Tagged With: javascript

JS: Optional parameter default true

Just a short note: If you want to have an optional boolean parameter and have the default value to be false, you can use the property of a boolean to be false if it’s either undefined, null, 0 or false, so just evaluating opt_booleanParameter would evaluate to false it the parameter is omitted (I use that &hellip Continue reading »

Categories: Code | Tags: , , , , | 160 Comments

HTML5 and canvas

Like many others I have gained some interest for HTML5 and especially the new canvas element. I have initially made a little interactive sandbox with a red, pokable ball. Nothing fancy, but somewhat interesting base for further dabbling into JavaScript and the canvas possibilities. I will keep this blog updated as I dig further into &hellip Continue reading »

Categories: Development | Tags: , , , , | 120 Comments