New Year, New Host!

Betwixt the many moorings of life’s business, JavaScript Unscripted has moved hosts – now both www.javascriptunscripted.com and www.jsunscripted.com are under the same registrar – NameCheap. I just managed to import all posts from the previous wordpress blog and nearly had a conniption, as subdued as my demeanor allows. Yes, quite. So between reinvigorating this blog […]

JavaScript: remove leading and trailing spaces

Ramble Preamble Hot on the heels of finishing off one of my non-JavaScript mini projects – the reason why there’s a lull of late on this blog – I’d come to the weary conclusion that somethings you just need JavaScript for. The project in question is a web port of a simple csv convertor desktop […]

Javascript functions

JavaScript allows numerous ways in which functions can be created and invoked. Named functions These have a name associated with them function nameOfFuction(){ // code goes here; } Assigned functions These are usually named or anonymous functions which are assigned to a variable var someName = function someFunction() { // code; }; // invoking the […]

JavaScript: Asynchronous Programming Primer

Some aspects of JavaScript are well known, or well loathed, mostly because it’s only partially understood. Some of these include that JavaScript is an interpreted language, which is not entirely true, which we’ll save for another day. Another is that JavaScript is a single threaded language, which is true but there are structures which allow […]

Enter your destiny here – Javascript binary to decimal

The bane of learning programming, it seems, is mostly waning effort or focus. This might not be due to lack of interest, but personally, like lots of effort spread over many different things, or specifically, to one particular item, none of which seem to gain any traction. You just seem to go through the motions […]

Accessing JavaScript object properties indirectly

When it comes to accessing data in JavaScript objects there are two methods available dot operator . bracket notation [] Take as a example an object with the following properties: var newObj = { propertyOne: “some string”, propertyTwo: 2, “property Three” : “other string”, 4 : “Four” }; Dot Operator The dot operator is typical […]

Scavenging old posts

So to populate an otherwise empty blog, I’ve decided to take the quick (cheap) way and just list some of the JavaScript posts I’ve written up in the past. Hopefully worthwhile information and possibly even leads to new posts in the future: Understanding Modulo operator in JavaScript For Loops in JavaScript explained JavaScript resources Learning […]

Hello world!

Welcome to JavaScript: Unscripted. It’s been a long while since I’ve blogged, too long; my last main blog – bareBones Daily, which was general musings mixed with general technology and other reviews has been idle for over a year now… As kismet would have it, I came across a course called ‘10 Steps to Learn […]