Javascript Tutorials
You might have noticed that usage of trim in javascript often throws an error in IE, causing the javascript to break. There are two simple alternatives to this, to make it work perfectly all the browsers including IE. The primary concern for javascript trim is to delete all the trailing...
There is not much difference in the three of these. Each one of these need a start index as one of the parameters. To look into the syntax first, for each one of them: [crayon-628c5428e27ac073418592/] Following are the examples that demonstrate different scenarios and would help you compare between the...
This is on of the most disastrous flaws in complex web applications, where there are hundreds of people working on different modules and writing their own respective javascript methods. For them to properly handle the null/undefined scenarios, it’s always better to create a separate method something like isNullOrUndefined in one...
Note that ‘===’ checks for both the type and value, and is a stricter way to check, whereas ‘==’ does the type conversion of the operands and checks only for the values. I have a grand example to demonstrate this: [crayon-628c5428e2ddc242718217/] I hope the example would be more than enough...
To start with, firstly we must know, what is jsRender? jsRender is a very powerful feature that is used to render dynamic contents on the web browser. In simple words, it’s a way to apply templates to the JSON data formed at the client side or coming from the server...