Explain Codes LogoExplain Codes Logo

Javascript

Changing CSS Values with Javascript

javascript
prompt-engineering
responsive-design
performance

When should I use Inline vs. External JavaScript?

javascript
performance
best-practices
web-development

How to check if object property exists with a variable holding the property name?

javascript
dynamic-property-names
javascript-best-practices
property-checking

Is there a way to add/remove several classes in one single instruction with classList?

javascript
prompt-engineering
functions
best-practices

How to set a value to a file input in HTML?

javascript
file-input
blob
data-transfer

How to go to a specific element on page?

javascript
scrolling
javascript-functions
jquery-plugins

How to convert a currency string to a double with Javascript?

javascript
prompt-engineering
functions
regex

Convert seconds to HH-MM-SS with JavaScript?

javascript
exception-handling
performance
functions

Reactjs - .JS vs .JSX

javascript
jsx
react
best-practices

How to find the width of a div using vanilla JavaScript?

javascript
responsive-design
css-transforms
getcomputedstyle

Jquery checkbox checked state changed event

javascript
event-delegation
checkbox
jquery

Using form input to access camera and immediately upload photos using web app

javascript
web-development
promises
callbacks

Jquery SVG, why can't I addClass?

javascript
svg-manipulation
jquery-svg
class-list

How to change port number in vue-cli project

javascript
vue-cli
port-number
development-server

Validate Phone Number with JavaScript

javascript
regex
validation
input-masking

How to create a file in memory for user to download, but not through server?

javascript
blob
file-download
web-workers

Check if a div exists with jquery

javascript
jquery
javascript-objects
vanilla-javascript

Disable form auto submit on button click

javascript
event-prevention
form-submission
javascript-best-practices

Execute function after complete page load

javascript
event-listeners
dom-content-loaded
async-loading

Setting width and height

javascript
responsive-design
performance
best-practices