JavaScript RegExp \d Metacharacter - Extract only numbers from a string
Tags: javascriptHow to use regexp \d metachacter in JavaScript to extract only numbers from a string? Its simple. ...December 6, 2023Continue Reading.How to read JSON from HTML file input
Tags: javascriptSharing a simple JS method that you can use to read JSON data from HTML file input element. ...March 2, 2024Continue Reading.How to get value of CodeMirror textarea
Tags: javascriptThere is a built-in method that you can use to get or retrieve value from CodeMirror textarea ...February 27, 2024Continue Reading.Difference between innerHTML and innerText Property
Tags: javascriptThe innerHTML property allows you to write HTML code along with a text value. Whereas, the innerText ...February 28, 2024Continue Reading.Uncaught ReferenceError: variable is not defined
Tags: javascriptWhy JavaScript throws "Uncaught ReferenceError: variable is not defined" error. Let us understand. ...February 12, 2024Continue Reading.How to sort a nested array in reverse order JavaScript
Tags: javascriptHere I am using a combination of "four" JS built-in methods to sort a nested array in reverse ...December 4, 2023Continue Reading.Convert Text to Speech in JavaScript using Web Speech API
Tags: javascript | browserThe SpeechSynthesis interface of Web Speech API allows JS developers to convert text to speech. Example here. ...January 8, 2024Continue Reading.Async/Await - Create a simple dropdown menu using dynamic XML data
How to create a simple dropdown menu with XML data from a file using Async/Await methods. ...January 21, 2024Continue Reading.How to to use filter() with RegExp object to search patterns in array
Tags: javascriptSharing two simple examples showing how to use filter() and RegExp to search patterns in array. ...March 12, 2024Continue Reading.How to expand SELECT element options on page load using JavaScript
Tags: javascriptAssuming, I have a SELECT dropdown list and I want to expand the options on page load ...January 20, 2024Continue Reading.