Explain Codes LogoExplain Codes Logo

Javascript

How do you automatically set text box to Uppercase?

javascript
event-listeners
input-field
uppercase-transformation

How do you add CSS with JavaScript?

javascript
prompt-engineering
cross-browser-compatibility
performance

How do JavaScript closures work?

javascript
closures
functional-programming
event-handlers

How do I use .toLocaleTimeString() without displaying seconds?

javascript
prompt-engineering
functions
time-formatting

How do I submit a form when the return key is pressed?

javascript
form-validation
javascript-functions
cross-browser-compatibility

How do I return the response from an asynchronous call?

javascript
async-programming
promises
async-await

How do I remove a key from a JavaScript object?

javascript
functions
promises
callbacks

How do I programmatically set the value of a select box element using JavaScript?

javascript
javascript-dom
event-listeners
dynamic-content

How do I POST urlencoded form data with $http without jQuery?

javascript
http
angularjs
serialization

How do I post form data with fetch api?

javascript
fetch-api
form-data
async-await

How do I parse a URL into hostname and path in javascript?

javascript
url-object
relative-urls
regex

How do I output an ISO 8601 formatted string in JavaScript?

javascript
date-formatting
iso-8601
time-zones

How do I loop through or enumerate a JavaScript object?

javascript
promises
callbacks
functions

How do I get the fragment identifier (value after hash #) from a URL?

javascript
prompt-engineering
functions
callbacks

How do I get a timestamp in JavaScript?

javascript
performance
timestamp
javascript-timestamp

How do I generate sourcemaps when using Babel and Webpack?

javascript
webpack
babel
sourcemaps

How do I find the absolute position of an element using jQuery?

javascript
responsive-design
performance
event-handling

How do I download a file with Angular2 or greater

javascript
file-downloads
angular
http-client

How do I detect a click outside an element?

javascript
event-delegation
click-detection
web-development

How do I copy to the clipboard in JavaScript?

javascript
prompt-engineering
clipboard-api
copying-text