Explain Codes LogoExplain Codes Logo

Javascript

Get Base64 encode file-data from Input Form

javascript
file-reader-api
base64-encoding
async-await

Getattribute() versus Element object properties?

javascript
prompt-engineering
best-practices
performance

Generating random whole numbers in JavaScript in a specific range

javascript
random-number-generation
math.random
uniform-distribution

Generate a Hash from string in Javascript

javascript
hashmap
functions
callbacks

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