Common Regular Expressions in Javascript
Here are a list of Common Regular Expressions in Javascript. Note: I will constantly update this post if any common pattern comes into my mind. Any »
Here are a list of Common Regular Expressions in Javascript. Note: I will constantly update this post if any common pattern comes into my mind. Any »
Different ways to copy object in JavaScript: 1) shallow copy Shallow copy keeps references to original objects, arrays or functions within the new object, so the »
JavaScript isEmptyObject: Three ways to check if an object is empty as I know: 1) // jQuery implementation function isEmptyObject(obj) { var name; for ( name in obj »
Nowadays people tend to use localStorage instead of cookie for lots of obvious benefits, but in some cases cookie is still useful. In this post, I »
Implied Globals: Any variable you don't declare becomes a property of the global object in JavaScript. Two examples for demonstration: 1) function sum(x, y) { result »
Jasmine is a very handy and powerful framework to write JavaScript unit test. I've been using it to write test cases for a variety of projects. »
I've been working on multiple types of JavaScript projects. Most of time, with the module pattern, it is very easy to expedite my work. I would »
Arrays are list-like objects that come with a several built-in methods to perform traversal and mutation operations. To learn more about Array methods, click here. Here »
Like my other posts, I prefer to use actual code snippets, examples to explain a concept. This one is probably the most favorable JavaScript interview question, »
This article is going to introduce some basic techniques about how to use both methods to detect browsers, and why is one method better than other »