Explain Codes LogoExplain Codes Logo

Javascript

In jQuery, how do I select an element by its name attribute?

javascript
jquery-selectors
attribute-selectors
dom-traversal

Random alpha-numeric string in JavaScript?

javascript
randomness
string-generation
math.random

How do you get the length of a string?

javascript
string-length
unicode
spread-operator

How to detect if browser supports HTML5 Local Storage

javascript
local-storage
feature-detection
try-catch

The useState set method is not reflecting a change immediately

javascript
react-hooks
state-management
use-effect

Is object empty?

javascript
object-introspection
browser-compatibility
javascript-objects

Momentjs date string add 5 days

javascript
momentjs
date-manipulation
javascript-best-practices

React-native: Application has not been registered error

javascript
react-native
error-handling
project-configuration

Get city name using geolocation

javascript
geolocation
reverse-geocoding
api-marketplace

Check whether a string matches a regex in JS

javascript
regex-engineering
javascript-best-practices
performance

Concatenating Variables and Strings in React

javascript
jsx
template-literals
string-manipulation

Animate element to auto height with jQuery

javascript
animation
jquery
css-transitions

How to convert unix timestamp to calendar date moment.js

javascript
momentjs
timestamp-conversion
date-formatting

Retrieve data from a ReadableStream object?

javascript
fetch-api
readablestream
stream-parsing

Zoom Canvas to Mouse Cursor

javascript
canvas-api
zoom-animation
mouse-events

Remove ALL white spaces from text

javascript
regex-patterns
string-manipulation
javascript-methods

Why do you need to invoke an anonymous function on the same line?

javascript
function-expression
iife
first-class-citizenship

How to get all properties values of a JavaScript Object (without knowing the keys)?

javascript
object-properties
javascript-objects
enumerable-properties

Disable autocomplete via CSS

javascript
prompt-engineering
autocomplete
browser-quirks

How can I convert an image into Base64 string using JavaScript?

javascript
promises
async-await
base64