Explain Codes LogoExplain Codes Logo

Javascript

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

How to call a PHP function on the click of a button

javascript
ajax
best-practices
javascript-8

Jquery If radio button is checked

javascript
prompt-engineering
functions
callbacks

Node.js get file extension

javascript
file-extension
string-manipulation
utility-functions