How to parse JSON object using JSON.stringify() in JavaScript

we will see how to parse a JSON object using the JSON.stringify function. In this article, we will see how to parse a JSON object using the JSON.stringify function. The JSON.stringfy() function is used for parsing JSON objects or converting them to strings, in both JavaScript and jQuery. We only need to pass the object as an… Continue reading How to parse JSON object using JSON.stringify() in JavaScript

How to modify the URL without reloading the page

We can modify the URL of any site without but as soon as we modify it relods and navigates to the given URL page but there is a way to change the URL without reloading the page. By the below example we can understand how we can modify the URL without without reloading the page.

How to fix Git error: repository not found

When attempting to access an Unfuddle STACK GIT Repository over HTTP repository not found error can be seen. When attempting to access an Unfuddle STACK GIT Repository over HTTP, the error would look like below: The reason for encountering this error is simple: the GIT repository you are trying to access does not exist at… Continue reading How to fix Git error: repository not found

How to fix “error: The current branch has no upstream branch” error in GitHub

Solution for Git error: The current branch has no upstream branch An upstream branch is a remote branch that is being tracked by a local branch.Depending on how the push.default config is set, you may encounter the following error. The fix is rather simple and is already suggested by the failing command: use –set-upstream option when pushing This is… Continue reading How to fix “error: The current branch has no upstream branch” error in GitHub

How to resolve the GIT error “you need to resolve your current index first”

If the “error: you need to resolve your current index first” message was shown after an attempt to run a git-merge, git-pull, or git-checkout you can try some of the following solutions: Make sure all your changes are committed. This is a good habit when working with Git, saving you from a lot of trouble. Just make sure the… Continue reading How to resolve the GIT error “you need to resolve your current index first”

Resolving a merge conflict on GitHub using the conflict editor

We get merge conflicts on GitHub that can be resolved using the conflict editor. You can only resolve merge conflicts on GitHub that are caused by competing line changes, such as when people make different changes to the same line of the same file on different branches in your Git repository. For all other types… Continue reading Resolving a merge conflict on GitHub using the conflict editor

How to disable scroll to change number in field using JavaScript

When a number is entered in a container and clicked on a button the scroller option to change the number is disabled to fixe the entered value. Given an HTML document containing <input type = “number”> attribute and the task is to disable the mouse scroll wheel to change number value using JavaScript/jQuery. Approach: Select… Continue reading How to disable scroll to change number in field using JavaScript

How to perform “Sorting, Joining or joining with some symbol” actions on all array elements by using Underscore.js function _.invoke()

When we need to perform certain actions like sorting, joining, joining with some symbol, then we can use this underscore function to easily achieve all this actions. The _.invoke() function is used to perform certain actions like sorting, joining, joining with some symbol, make upper case etc the elements of an array. It call the function directly… Continue reading How to perform “Sorting, Joining or joining with some symbol” actions on all array elements by using Underscore.js function _.invoke()

How to give a specific format pattern for a date (DD/MM/YY OR MM/DD/YYYY) in JavaScript

If we want to give a specific pattern to a date like DD/MM/YYYY or MM/DD/YYYY we can use this method. Let’s break that down and see what’s going on up there. Again, we have wrapped the entire regular expression inside ^ and $, so that the match spans entire string. ( start of first subexpression. \d{1,2} matches at least 1… Continue reading How to give a specific format pattern for a date (DD/MM/YY OR MM/DD/YYYY) in JavaScript