Explain Codes LogoExplain Codes Logo

Javascript

Is there a standard function to check for null, undefined, or blank variables in JavaScript?

javascript
truthiness
isempty
type-coercion

Parsing a string to a date in JavaScript

javascript
date-parsing
momentjs
regex

How can I create unique IDs with JavaScript?

javascript
unique-ids
dom-manipulation
event-driven

Stop an input field in a form from being submitted

javascript
form-handling
user-experience
dynamic-inputs

How to create an object property from a variable value in JavaScript?

javascript
object-properties
es6
bracket-notation

When is localStorage cleared?

javascript
localstorage
indexeddb
data-persistence

Show or hide element in React

javascript
state-management
conditional-rendering
performance

How can I detect changes in location hash?

javascript
hashchange
ajax
performance

Using jQuery to test if an input has focus

javascript
jquery
focus
accessibility

Wait 5 seconds before executing next line

javascript
async-await
promises
nodejs

Adding a table row in jQuery

javascript
jquery
dom-manipulation
dynamic-content

How to sort in mongoose?

javascript
mongoose
sorting
pagination

How can I add a class to a DOM element in JavaScript?

javascript
classlist
dom-manipulation
best-practices

How to close current tab in a browser window?

javascript
window-close
user-confirmation
custom-modal

How to get a file or blob from an object URL?

javascript
fetch
blob
file-download

Best way to find if an item is in a JavaScript array?

javascript
array-methods
performance
polyfills

React js onClick can't pass value to method

javascript
onclick
performance
event-handling

How do I check that a number is float or integer?

javascript
number-check
type-detection
polyfill

How do I measure the execution time of JavaScript code with callbacks?

javascript
callbacks
performance
async-await

Vue.js dynamic images not working with webpack

javascript
dynamic-images
webpack
vuex