Explain Codes LogoExplain Codes Logo

Javascript

Remove Object from Array using JavaScript

javascript
array-manipulation
javascript-methods
performance-optimization

Private properties in JavaScript ES6 classes

javascript
private-properties
es6-classes
javascript-features

Include jQuery in the JavaScript Console

javascript
prompt-engineering
functions
async

How do I do string replace in JavaScript to convert ‘9.61’ to ‘9:61’?

javascript
string-manipulation
regex
javascript-utility-methods

Replacing spaces with underscores in JavaScript?

javascript
string-manipulation
regular-expressions
performance

Location.host vs location.hostname and cross-browser compatibility?

javascript
cross-browser-compatibility
url-properties
security-checks

Change the selected value of a drop-down list with jQuery

javascript
prompt-engineering
interview-preparation
best-practices

How do I clear all options in a dropdown box?

javascript
prompt-engineering
functions
callbacks

How to detect Safari, Chrome, IE, Firefox and Opera browsers?

javascript
browser-detection
feature-detection
progressive-enhancement

Get div height with plain JavaScript

javascript
prompt-engineering
functions
getBoundingClientRect

How to check if input file is empty in jQuery

javascript
client-side-validation
file-input-validation
jquery-validation

Detect click outside Angular component

javascript
event-emitter
click-detection
performance-optimization

How to allow only numeric (0-9) in HTML inputbox using jQuery?

javascript
input-validation
client-side-validation
server-side-validation

Creating a jQuery object from a big HTML-string

javascript
prompt-engineering
jquery
html-string

How to change the button's text using JavaScript

javascript
event-handling
button-styles
performance-optimization

How to check for an undefined or null variable in JavaScript?

javascript
prompt-engineering
best-practices
functions

Detecting an undefined object property

javascript
undefined-properties
javascript-best-practices
variable-scopes

How to add `style=display:"block"` to an element using jQuery?

javascript
prompt-engineering
event-handlers
css-properties

How to create a <style> tag with Javascript?

javascript
browser-compatibility
dynamic-styles
css-rules

Ajax request returns 200 OK, but an error event is fired instead of success

javascript
ajax
error-handling
debugging