Explain Codes LogoExplain Codes Logo

Javascript

Is there any reason for using WebGL instead of 2D Canvas for 2D games/apps?

javascript
webgl-vs-canvas
game-development
performance-optimization

How can I add an element after another element?

javascript
jquery
dom-manipulation
javascript-methods

How can I get an element's ID value with JavaScript?

javascript
event-listeners
dom-manipulation
jquery

How to format numbers as currency strings

javascript
number-formatting
intl-numberformat
currency-formatting

How can I pass a parameter to a setTimeout() callback?

javascript
callbacks
promises
async-programming

How to uncheck a radio button?

javascript
event-handling
jquery-plugin
state-tracking

Checking image load status with jQuery

javascript
image-load-status
jquery
event-handling

How to check a not-defined variable in JavaScript

javascript
prompt-engineering
best-practices
error-handling

Get the data received in a Flask request

javascript
flask-requests
json-data
form-data

Get local IP address in Node.js

javascript
network-interfaces
ipv4-addresses
dns-resolution

How can I determine if a variable in JavaScript is 'undefined' or 'null'?

javascript
undefined-null-difference
javascript-comparisons
try-catch-blocks

How do I pass command line arguments to a Node.js program?

javascript
command-line-arguments
argument-parsing
node-js

Keep overflow div scrolled to bottom unless user scrolls up

javascript
scroll-control
user-experience
css-utilities

How to get an element's padding value using JavaScript?

javascript
getcomputedstyle
javascript-padding
css-styles

How to clear a chart from a canvas so that hover events cannot be triggered?

javascript
canvas-management
chart-handling
event-listeners

Call JavaScript function after script is loaded

javascript
promises
callbacks
script-loading

Get a random item from a JavaScript array

javascript
randomness
performance-optimization
array-manipulation

How do I detect "shift+enter" and generate a new line in Textarea?

javascript
textarea-events
keyboard-events
cross-browser-compatibility

How can I add "href" attribute to a link dynamically using JavaScript?

javascript
dynamic-link-creation
event-listeners
vanilla-javascript

What events does an `` fire when its value is changed?

javascript
event-handling
input-event
debouncing-techniques