Maven Mavenis a powerful project management tool that is based on POM (project object model). It is used for projects build, dependency and documentation. It simplifies the build process like…
JAVASCRIPT
JavaScript is a dynamic and object-based programming language which is used for client-side scripting in web browsers. JavaScript can also be run outside of the browser with the use of a framework like node.js, Nashorn, Wakanda, or Google Apps Script.
PROBLEM How to check for an empty string in JavaScript SOLUTION 1: If we need to check whether there’s any value in string, If we need to check specifically for…
What is a Client side programming language? Client side programming has mostly to do with the user interface, with which the user interacts. In web development it’s the browser, in…
.attr() Get the value of an attribute for the first element in the set of matched elements. .prop() Get the value of a property for the first element in the…
PROBLEM: In countless places online we have seen the recommendation to include CSS prior to JavaScript. The reasoning is generally, of this form: use the following page to test [ad…
Replacing strings in files based on certain search criteria is a very common task. How can I replace string foo with bar in all files in the current directory? do…
timestamp in JavaScript: The Date.now() method returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC. Syntax [ad type=”banner”] Get a UNIX timestamp with Javascript Return value A…
To reload cached CSS/JS files : The easiest way for you is to use some kind of versioning, so that the browser automatically downloads the new, refreshed version of your…
Removing a Specific Element by Value To remove an element from an array based on the value in JavaScript is to find index number of that value in an array…
PROBLEM It is possible to toggle the visibility of an element, using the functions .hide(), .show() or .toggle() How would you test if an element is visible or hidden? SOLUTION…