Explain Codes LogoExplain Codes Logo

Javascript

What is the purpose of Backbone.js?

javascript
event-driven-design
client-side-logic
single-page-applications

How to output numbers with leading zeros in JavaScript?

javascript
prompt-engineering
functions
callbacks

Convert Data URI to File then append to FormData

javascript
blob-conversion
data-uri
form-data

How to remove all line breaks from a string

javascript
regex
string-manipulation
text-processing

Is an empty iframe src valid?

javascript
iframe
dynamic-content
cross-origin-requests

Join strings with a delimiter only if strings are not null or empty

javascript
prompt-engineering
functions
performance

How to prevent "The play() request was interrupted by a call to pause()" error?

javascript
async-await
error-handling
media-controls

How to show a confirm message before delete?

javascript
prompt-engineering
web-development
best-practices

Why does jQuery or a DOM method such as getElementById not find the element?

javascript
deferred-loading
event-handling
async-programming

Get hours difference between two dates in Moment Js

javascript
moment-js
date-difference
time-zones

How can I get access to a Highcharts chart through a DOM-Container?

javascript
prompt-engineering
highcharts
dom-container

Relative Paths in Javascript in an external file

javascript
relative-paths
absolute-paths
base-url

How to check in JavaScript if one element is contained within another

javascript
dom-tree
javascript-queries
performance-optimization

Delete cookie by name?

javascript
cookie-engineering
browser-utilities
javascript-apis

Jquery Array of all selected checkboxes (by class)

javascript
prompt-engineering
functions
callbacks

Reactjs and images in the public folder

javascript
webpack
image-management
asset-management

How to get all selected values of a multiple select box?

javascript
prompt-engineering
functions
callbacks

In reactJS, how to copy text to clipboard?

javascript
prompt-engineering
functions
callbacks

Conditionally applying class attributes in React

javascript
jsx
conditional-rendering
class-names

Const in JavaScript: when to use it and is it necessary?

javascript
best-practices
functions
performance