Explain Codes LogoExplain Codes Logo

Javascript

How do I view events fired on an element in Chrome DevTools?

javascript
devtools
event-monitoring
custom-events

How to check if a string is a valid JSON string?

javascript
json-validation
error-handling
data-structure

Check if a variable is of function type

javascript
typeof
instanceof
function-check

Get class name using jQuery

javascript
jquery
dom-manipulation
event-handling

Is there some way I can "join" the contents of two JavaScript arrays much like I would do a join in SQL?

javascript
array-join
performance
functions

Check if a variable is a string in JavaScript

javascript
string-validation
best-practices
unit-testing

How to auto-scroll to end of div when data is added?

javascript
auto-scroll
ajax
performance

How to Simulate a Click with JavaScript?

javascript
click
event-delegation
custom-events

Show loading screen when navigating between routes in Angular 2

javascript
loading-screen
rxjs
navigation

Convert string to number and add one

javascript
string-conversion
input-validation
increment

Set the Default Value of an Input Field

javascript
input-fields
default-values
user-experience

How to create `` dynamically

javascript
input-creation
form-handling
user-experience

Mailto link multiple body lines

javascript
mailto
url-encoding
email-clients

Refresh Part of Page (div)

javascript
ajax
dom-manipulation
performance

How to format a float in JavaScript?

javascript
tofixed
number-formatting
rounding

Is it possible to write data to file using only JavaScript?

javascript
file-handling
downloads
blob

When should I use curly braces for ES6 import?

javascript
es6-imports
naming-conventions
refactoring

Canvas drawings, like lines, are blurry

javascript
canvas
device-pixel-ratio
high-definition

Test for existence of nested JavaScript object key

javascript
optional-chaining
lodash
best-practices

How do I detect dark mode using JavaScript?

javascript
dark-mode
media-query
color-scheme