AngularJS Expressions AngularJS Expressions are like the JavaScript code snippets that are mainly used for binding purposes. Angular expressions are always used to bind the data to HTML DOM element. All…
Capitalize the first letter of string using JavaScript
If you come across a scenario where you need to Capitalize the first letter of string using JavaScript then you could easily perform this in one-liner using built-in string methods…
Create GUID/UUID in JavaScript
There might be situations where you would be creating GUID in Javascript, Currently JavaScript doesn’t have any Built-in method to generate the GUID/UUID. We could use Math.random() or Date().getTime() and…
Measure JavaScript Execution time console.time() and console.timeEnd()
Debugging the JavaScipt code to identify performance issue is a very tedious task. There are built-in JavaScript methods which you could use to measure the performance and the time taken…
How to use node.js REPL terminal?
REPL stands for Read Eval Print Loop is a command line environment like windows console or Unix/Linux shell where everything is interacted using commands. NodeJS comes with REPL as a…
How to Submit a Form using JavaScript
The easiest way to submit a form using JavaScript is by using HTMLFormElement.submit() method. This method does something similar to activating a submit button of the form. If a form…
How to Create and Delete Git Tags in GitHub Repository
git tag is used to tag or mark a specific revision as significant, often this will be used during the build deployment and realsing of the code. Once a tag is…
How to work with Arrays in Javascript with examples
JavaScript arrays are used to store multiple values in a single variable. JavaScript Array object is a global object that is used in the construction of arrays; which are high-level,…
Convert Sitecore items into an Sitecore Item Bucket
What are Item Buckets in Sitecore? Everything is an item in the Sitecore content tree. An item bucket is a content repository inside Sitecore content tree that can store other content…
How to Cache and Store your Github passwords in Git
If you are using the HTTPS protocol to clone GitHub repositories you would have come across this annoying scenario where you need to enter the password every time you push,…