Explain Codes LogoExplain Codes Logo

Javascript

How can I add "href" attribute to a link dynamically using JavaScript?

javascript
dynamic-link-creation
event-listeners
vanilla-javascript

What events does an `` fire when its value is changed?

javascript
event-handling
input-event
debouncing-techniques

How can I get query string values in JavaScript?

javascript
query-string
url-search-params
javascript-utility

Check if input is a number or letter in JavaScript

javascript
input-validation
type-coercion
regex-patterns

How to get the children of the $(this) selector?

javascript
jquery-selectors
dom-navigation
performance-optimization

What is the correct syntax of ng-include?

javascript
angularjs
ng-include
best-practices

What does the construct x = x || y mean?

javascript
short-circuit-evaluation
default-function-parameters
falsy-values

Length of a JavaScript object

javascript
object-properties
javascript-utility-functions
property-counting

Get index of selected option with jQuery

javascript
jquery-selectors
dom-manipulation
event-handling

Random color generator

javascript
color-generation
hsl-color-space
performance-optimization

How to remove undefined and null values from an object using lodash?

javascript
lodash
omitby
isnil

Disable same origin policy in Chrome

javascript
security
testing
development

How to interpolate variables in strings in JavaScript, without concatenation?

javascript
template-literals
string-interpolation
es6-features

Implode an array with JavaScript?

javascript
join
array-manipulation
string-operations

How to get the focused element with jQuery?

javascript
focus-detection
jquery
browser-behaviors

Mocha / Chai expect.to.throw not catching thrown errors

javascript
async-debugging
error-testing
mocha-chai

Ios JavaScript bridge

javascript
javascript-bridge
web-development
performance

Get data from fs.readFile

javascript
async-programming
callbacks
promises

Rails order by association field

javascript
promises
callbacks
arel

Set type for function parameters?

javascript
type-checking
javascript-features
best-practices