Explain Codes LogoExplain Codes Logo

Javascript

Javascript variable number of arguments to function

javascript
arguments
default-parameters
spread-operator

Using async/await with a forEach loop

javascript
async-await
promise-all
for-await-of

How can I add new array elements at the beginning of an array in JavaScript?

javascript
array-manipulation
performance
best-practices

Trim string in JavaScript

javascript
trim
polyfill
regex

How to do associative array/hashing in JavaScript

javascript
associative-array
map
json

How do I get the current date in JavaScript?

javascript
date-formatting
cross-browser
locale-specific

Get the size of the screen, current web page and browser window

javascript
responsive-design
cross-browser
jquery

How do I check if an object has a key in JavaScript?

javascript
key-checks
object-properties
es2020

Javascript set object key by variable

javascript
dynamic-keys
es6
object-literal

Check if checkbox is checked with jQuery

javascript
jquery
checkbox
event-delegation

How to customize ``?

javascript
file-upload
custom-styling
accessibility

Typeerror: Router.use() requires middleware function but got a Object

javascript
middleware
express
debugging

How to delete a database in WebSQL programmatically?

javascript
websql
database
developer-tools

  in JSX not working

javascript
jsx
whitespace
accessibility

Turning off eslint rule for a specific line

javascript
eslint
code-quality
technical-debt

Adding attribute in jQuery

javascript
jquery
attributes
selectors

Ng-model does not update controller value

javascript
ng-model
angularjs
scope

How to delete a localStorage item when the browser window/tab is closed?

javascript
localstorage
sessionstorage
onbeforeunload

How to dynamically change a webpage's title?

javascript
dynamic-title
seo
performance

Firebug-like debugger for Google Chrome

javascript
devtools
debugging
web-development