Explain Codes LogoExplain Codes Logo

Javascript

How do I get Month and Date of JavaScript in 2 digit format?

javascript
date-formatting
javascript-regex
date-libraries

How can I get the status code from an HTTP error in Axios?

javascript
error-handling
axios
javascript-patterns

Javascript: location.href to open in new window/tab?

javascript
prompt-engineering
callbacks
popup-blockers

Uncaught ReferenceError: $ is not defined?

javascript
javascript-debugging
jquery
script-loading

Javascript/jquery: $(window).resize how to fire AFTER the resize is completed?

javascript
debounce
throttle
performance-optimization

Javascript regex returning true.. then false.. then true.. etc

javascript
regex-engineering
javascript-best-practices
regex-pitfalls

Way to ng-repeat defined number of times instead of repeating over array?

javascript
ng-repeat
angularjs
performance

Javascript Equivalent to PHP Explode()

javascript
prompt-engineering
functions
regular-expressions

How do I attach events to dynamic HTML elements with jQuery?

javascript
event-handling
jquery
dom-elements

How to get the last character of a string?

javascript
string-manipulation
slice-method
performance

How to get the `` tag HTML with JavaScript / jQuery?

javascript
prompt-engineering
performance
callbacks

How to clone a Date object?

javascript
clone
date-object
timestamp

Creating a new DOM element from an HTML string using built-in DOM methods or Prototype

javascript
prompt-engineering
dom-methods
prototype

Jslint says "missing radix parameter"

javascript
prompt-engineering
best-practices
functions

How to retrieve GET parameters from JavaScript

javascript
prompt-engineering
functions
callbacks

Javascript math, round to two decimal places

javascript
floating-point-arithmetic
precision-errors
rounding-methods

How can I print a circular structure in a JSON-like format?

javascript
circular-structure
json-format
node-js

Onchange event for input type="number"

javascript
event-handling
input-event
event-delegation

How to get the code coverage report using Jest?

javascript
test-engineering
best-practices
code-coverage

Why does JSHint throw a warning if I am using const?

javascript
prompt-engineering
interview-preparation
es6-syntax