Explain Codes LogoExplain Codes Logo

Javascript

Send response to all clients except sender

javascript
socket-io
broadcasting
error-handling

Typescript: problems with type system

javascript
type-system
canvas-api
dynamic-properties

How to insert an item into an array at a specific index (JavaScript)

javascript
array-insertion
method-chaining
performance

How to Set Input Type Date's Default Value to Today?

javascript
input-type
date-formatting
jquery

What does "javascript:void(0)" mean?

javascript
void-operator
accessibility
user-experience

Preloading images with jQuery

javascript
image-preloading
error-handling
ajax-callbacks

How can I check if an object is an array?

javascript
array-checking
performance
polyfill

How do I replace all occurrences of a string in JavaScript?

javascript
regex
string-replacement
best-practices

How do I check if an array includes a value in JavaScript?

javascript
includes
performance
polyfills

Format number to always show 2 decimal places

javascript
number-formatting
precision
localization

How to convert a string to an integer in JavaScript

javascript
string-conversion
parseint
number-function

How do I make the first letter of a string uppercase in JavaScript?

javascript
string-manipulation
browser-compatibility
performance

How can I determine equality for two JavaScript objects?

javascript
lodash
deep-comparison
es6

How to get a key in a JavaScript object by its value?

javascript
functions
best-practices
performance

How to get first N number of elements from an array

javascript
slice
filter
immutability

How to convert the "arguments" object to an array in JavaScript?

javascript
arguments
array-conversion
performance

Do I need to return after early resolve/reject?

javascript
promises
error-handling
code-readability

Javascript get x and y coordinates on mouse click

javascript
mouse-event
event-handling
responsive-design

Checking if a key exists in a JavaScript object?

javascript
key-checks
hasownproperty
object

Get checkbox value in jQuery

javascript
checkbox
form-submission
dom-manipulation