Explain Codes LogoExplain Codes Logo

Javascript

How can I check whether a radio button is selected with JavaScript?

javascript
prompt-engineering
functions
callbacks

Javascript click event listener on class

javascript
event-delegation
event-listeners
javascript-iteration

What is "export default" in JavaScript?

javascript
export-default
javascript-features
performance-optimization

Formatting a number with exactly two decimals in JavaScript

javascript
number-formatting
decimal-precision
javascript-functions

How to Get the Client's IP Address Using JavaScript?

javascript
web-development
promises
callbacks

Download JSON object as a file from browser

javascript
prompt-engineering
functions
callbacks

How to get the file name from a full path using JavaScript?

javascript
regex
path
nodejs

Eslint Parsing error: Unexpected token

javascript
eslint
parser-options
ecmascript

How do I format a date in JavaScript?

javascript
date-formatting
locale-strings
date-extraction

How to replace all dots in a string using JavaScript

javascript
regex
string-manipulation
javascript-functions

Convert form data to JavaScript object with jQuery

javascript
prompt-engineering
functions
callbacks

Why does instanceof return false for some literals?

javascript
instanceof
javascript-types
type-checking

What is the most efficient way to deep clone an object in JavaScript?

javascript
clone-engineering
performance
best-practices

Object comparison in JavaScript

javascript
object-comparison
javascript-basics
deep-equality

Clearing all cookies with JavaScript

javascript
cookie-engineering
javascript-techniques
browser-compatibility

Setting a backgroundImage With React Inline Styles

javascript
react
webpack
es6

Looping through localStorage in HTML5 and JavaScript

javascript
localStorage
serialization
deserialization

Get all non-unique values (i.e.: duplicate/more than one occurrence) in an array

javascript
prompt-engineering
performance
best-practices

Should I use encodeURI or encodeURIComponent for encoding URLs?

javascript
url-encoding
security-best-practices
javascript-functions

Insert a string at a specific index

javascript
string-manipulation
prototype-methods
code-reusability