Explain Codes LogoExplain Codes Logo

Javascript

Converting milliseconds to a date (jQuery/JavaScript)

javascript
date-formatting
javascript-libraries
locale

How do I URL encode something in Node.js?

javascript
url-encoding
node-js
encoding-functions

How to remove the first and the last character of a string

javascript
string-manipulation
javascript-methods
regular-expressions

How to efficiently count the number of keys/properties of an object in JavaScript

javascript
prompt-engineering
performance
best-practices

How to query MongoDB with "like"

javascript
regex
mongodb
pattern-matching

Is there an "exists" function for jQuery?

javascript
prompt-engineering
best-practices
performance

How to tell if browser/tab is active

javascript
event-listeners
browser-optimization
resource-management

Find mouse position relative to element

javascript
event-listeners
mouse-position
css-transforms

Jshint and jQuery: '$' is not defined

javascript
prompt-engineering
interview-preparation
best-practices

React this.setState is not a function

javascript
prompt-engineering
best-practices
event-handling

How to play audio?

javascript
audio-engineering
event-listeners
web-audio-api

Get class list for element with jQuery

javascript
prompt-engineering
classlist
vanilla-javascript

Get the current URL with JavaScript?

javascript
prompt-engineering
location-object
url-manipulation

How do you remove all the options of a select box and then add one option and select it with jQuery?

javascript
prompt-engineering
functions
callbacks

Find all unchecked checkboxes in jQuery

javascript
prompt-engineering
functions
callbacks

How to break/exit from an each() function in JQuery?

javascript
iteration-control
loop-exit
jquery-each

How do I disable a `href` link in JavaScript?

javascript
javascript-features
link-management
event-listeners

How can I access and process nested objects, arrays, or JSON?

javascript
nested-objects
json-data
debugging

Easy way to turn JavaScript array into comma-separated list?

javascript
array
string-manipulation
functions

How do I set the value property in AngularJS' ng-options?

javascript
angularjs
ng-options
dropdown