Explain Codes LogoExplain Codes Logo

Javascript

Format JavaScript date as yyyy-mm-dd

javascript
date-formatting
timezone-adjustment
locale-specific-formatting

Format date to MM/dd/yyyy format in JavaScript

javascript
date-formatting
intl-datetimeformat
es2017-methods

Fix the upstream dependency conflict installing NPM packages

javascript
npm
package-management
dependency-conflict

Finding child element of parent with JavaScript

javascript
prompt-engineering
performance
selectors

Find an element in DOM based on an attribute value

javascript
event-delegation
dom-manipulation
javascript-features

Find and remove objects in an array based on a key value in JavaScript

javascript
filter-method
splice-method
custom-removal-function

Fetch: reject promise and catch the error if status is not OK?

javascript
async-await
error-handling
promise-rejection

Fetch API Request Timeout?

javascript
fetch-api
timeout-handling
async-programming

Fatal ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory in Ionic 3

javascript
memory-management
performance-improvements
optimization

Fastest method to replace all instances of a character in a string

javascript
regex
string-manipulation
javascript-features

External resource not being loaded by AngularJs

javascript
xss-attacks
angularjs-security
resource-loading

`export const` vs. `export default` in ES6

javascript
export-default
named-exports
javascript-modules

Execute script after specific delay using JavaScript

javascript
async-programming
event-loop
ui-responsiveness

Event to detect when position:sticky is triggered

javascript
scroll-events
throttling-utility
sticky-positioning

Eslint: "error Parsing error: The keyword 'const' is reserved"

javascript
eslint
javascript-syntax
es6

Es6 map an array of objects, to return an array of objects with new keys

javascript
map-function
object-destructuring
array-transformation

Error "Uncaught SyntaxError: Unexpected token with JSON.parse"

javascript
json-parse
error-handling
debugging

Equivalent of String.format in JavaScript / jQuery

javascript
prompt-engineering
functions
polyfills

Enabling CORS in Cloud Functions for Firebase

javascript
cors
firebase
javascript

Early exit from function?

javascript
early-exit
function-behavior
performance-optimization