Explain Codes LogoExplain Codes Logo

Javascript

What is the difference between angular-route and angular-ui-router?

javascript
routing
angular-ui-router
angular-route

What is the purpose of Node.js module.exports and how do you use it?

javascript
module-exports
commonjs-modules
javascript-modules

What is a good regular expression to match a URL?

javascript
regex
url-validation
javascript-regex

Is there a better way to do optional function parameters in JavaScript?

javascript
function-overloading
default-parameters
javascript-features

How to add image to canvas

javascript
image-loading
canvas
javascript-graphics

Parse Error: Adjacent JSX elements must be wrapped in an enclosing tag

javascript
jsx
react
performance

Sorting object property by values

javascript
sorting
comparator
data-types

How can I remove a style added with .css() function?

javascript
jquery
css
javascript-best-practices

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