Defer and Async attributes in JavaScript, they both are boolean attributes these attributes are used with script tags to load the external JavaScript file efficiently and smoothly into the webpages. Because today in modern websites the load time of JavaScript is longer than html files and their processing is also […]
JavaScript Browser Detection
You might have seen many websites detecting your browser and displaying the details of your browser on the web pages or checking the version of the browser to tell you to upgrade the browser or sometimes the websites might only run on a certain version or higher. A common example […]
Session Storage in JavaScript
What is sessionStorage? sessionStorage is an object for the current session much like the localStorage, sessionStorage can also store data in the memory of the browser, but this data cannot persist over multiple sessions, it gets deleted after a page session is ended. Whenever a document is loaded in a […]
Local storage in JavaScript
What is localStorage in javascript? The local storage is the storage location provided by the browser and that allows us to store key/value pairs in a web browser to use at a later stage of time. The localStorage object stores the data without any expiration date, i.e. data stored in […]
Regular Expressions – I
A regular expression (shortened as regex) is an extremely useful way of matching common patterns and texts such as emails, phone numbers, URLs etc. almost all programming languages have a regular expressions library. It is widely used in text editors also to find patterns and replace string patterns that we specify in the […]
JavaScript Map(), Reduce() array of objects
Functional programming techniques can help in making code easier to understand at a glance and read and test, Functional programming has been making quite a splash in the development world. Functional programming has its special lists of list operations they are exactly like array of things. The list items are […]
How to define and assign values to JavaScript arrays.
Array in JavaScript Arrays are variables that can store ordered collection of values in them which can be of different data types, with each having a numeric position known as an index. JavaScript follows a zero-based indexing scheme, meaning the index of the 1st element will start from 0, 2nd […]
How to enable JavaScript in my browser? – Chrome,Firefox,IE,Opera,Safari
How to enable JavaScript in different browsers? JavaScript should be enabled in the browser if a website has functionalities implemented in js. For example, HTML form validations, Advertisements, Popup menus, Button click events etc., Lets see how to enable JavaScript in these browsers: Chrome IE Firefox Opera Safari If JavaScript […]
[JS] How to remove particular element in JavaScript Array?
JavaScript to Remove Element in Array JavaScript arrays are variables that can store ordered collection of values in them which can be of different datatypes, with each having a numeric position known as indexes. We can add and remove array elements in several ways. So, how do we remove a […]
[WordPress] Display HTML Tags inside Pre
Display HTML Code in WordPress Post In WordPress posts if we write any HTML codes in Text editor, the code will not be displayed. Instead of code, WordPress, sends the HTML code as it is. The web browser compiles the code to display its output. Hence the code will not […]