Explain Codes LogoExplain Codes Logo

Javascript

Replace multiple strings with multiple other strings

javascript
functions
regex
performance

Why isn't my JavaScript working in JSFiddle?

javascript
event-listeners
function-declaration
scope-and-closures

Pass a string parameter in an onclick function

javascript
event-handling
dom-manipulation
best-practices

Open a URL in a new tab (and not a new window)

javascript
event-driven-programming
popup-blockers
ajax-calls

Jquery .live() vs .on() method for adding a click event after loading dynamic html

javascript
event-delegation
performance-optimization
best-practices

Onclick javascript to make browser go back to previous page?

javascript
onclick-event
browser-history
javascript-functions

How can I perform a debounce?

javascript
debounce
react-hooks
async-programming

How can I set focus on an element in an HTML form using JavaScript?

javascript
focus
javascript-dom
accessibility

How can I convert a string to boolean in JavaScript?

javascript
boolean-conversion
javascript-operators
truthy-falsy-values

Print content of JavaScript object?

javascript
json-stringify
console-log
object-printing

What's the difference between `typeof` and `instanceof` in JavaScript and when should they each be used?

javascript
type-checking
instanceof
typeof-operator

How to parse float with two decimal places in javascript?

javascript
float-parsing
decimal-places
performance-optimization

How to check if a number is between two values?

javascript
functions
callbacks
promises

Jquery get textarea text

javascript
event-listening
textarea
ajax-submission

Redirect website after specified amount of time

javascript
redirect
countdown
user-experience

Remove Style on Element

javascript
style-removal
event-listening
dom-manipulation

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