Explain Codes LogoExplain Codes Logo

Javascript

In Node.js, how do I "include" functions from my other files?

javascript
module-exports
destructuring
best-practices

How to get the browser viewport dimensions?

javascript
responsive-design
browser-quirks
viewport-dimensions

Babel-loader jsx SyntaxError: Unexpected token

javascript
babel-loader
webpack
jsx

Generate random number between two numbers in JavaScript

javascript
functions
promises
callbacks

How to detect input type=file "change" for the same file?

javascript
event-handling
input-file
file-input

Creating multiline strings in JavaScript

javascript
template-literals
babel
multiline-strings

Getting the client's time zone (and offset) in JavaScript

javascript
time-zone
date-formatting
intl-datetimeformat

Google Maps JS API v3 - Simple Multiple Marker Example

javascript
prompt-engineering
web-development
best-practices

How to iterate (keys, values) in JavaScript?

javascript
iterating
object-entries
map-objects

Case-insensitive search

javascript
regex
case-insensitive-search
string-manipulation

Get the closest number out of an array

javascript
functions
currying
promises

Split string only on first instance of specified character

javascript
prompt-engineering
functions
performance

How do I check if a cookie exists?

javascript
cookie-engineering
javascript-utilities
web-development

How do I check if file exists in jQuery or pure JavaScript?

javascript
file-existence
ajax
xmlhttprequest

Angularjs newline filter with no other html

javascript
angularjs
html-binding
css-properties

How to make HTML element resizable using pure JavaScript?

javascript
responsive-design
performance
best-practices

Adding options to select with JavaScript

javascript
prompt-engineering
functions
performance

How to manage a redirect request after a jQuery Ajax call

javascript
ajax
redirect
server-response

How to check if an object is a Promise?

javascript
promises
javascript-features
best-practices

Scroll to bottom of div?

javascript
scrolling
animation
dom-manipulation