Explain Codes LogoExplain Codes Logo

Javascript

Is it possible to pass a flag to Gulp to have it run tasks in different ways?

javascript
gulp
yargs
command-line-arguments

How to export JavaScript array info to csv (on client side)?

javascript
prompt-engineering
performance
feature-detection

How can I shuffle an array?

javascript
shuffle
array
performance

How to sort an object array by date property?

javascript
prompt-engineering
functions
best-practices

How do I remove documents using Node.js Mongoose?

javascript
promises
callbacks
bulk-write

Check if string contains only digits

javascript
regex
string-validation
functions

Popstate on page's load in Chrome

javascript
prompt-engineering
best-practices
state-management

Testing if a checkbox is checked with jQuery

javascript
jquery
checkbox
state

Get the current year in JavaScript

javascript
dynamic-content
date-object
javascript-snippet

What is the difference between `throw new Error` and `throw someObject`?

javascript
error-handling
promises
try-catch

Javascript DOM: Find Element Index In Container

javascript
dom-manipulation
javascript-features
browser-compatibility

Jquery Event Keypress: Which key was pressed?

javascript
keypress
event-handling
jquery

How to get child element by class name?

javascript
dom-navigator
mutation-observer
dom-manipulation

How to get the value of a selected radio button

javascript
radio-button
browser-compatibility
jquery

How to show the "Are you sure you want to navigate away from this page?" when changes committed?

javascript
prompt-engineering
beforeunload
onchange

How to reset a select element with jQuery

javascript
jquery
forms
reset

How can I add a key/value pair to a JavaScript object?

javascript
object-manipulation
javascript-objects
spread-syntax

Most efficient way to convert an HTMLCollection to an Array

javascript
javascript-convert
array-methods
htmlcollection

Javascript CSS how to add and remove multiple CSS classes to an element

javascript
class-manipulation
javascript-techniques
web-development

How to escape hash character in URL

javascript
url-encoding
javascript-functions
web-development