Explain Codes LogoExplain Codes Logo

Javascript

Get checkbox value in jQuery

javascript
checkbox
form-submission
dom-manipulation

Reload an iframe with jQuery

javascript
iframe
user-experience
jquery

What's the Best Way to Break from Nested Loops in JavaScript?

javascript
nested-loops
break
array-methods

Convert a Unix timestamp to time in JavaScript

javascript
unix-timestamp
time-formatting
date-object

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