Explain Codes LogoExplain Codes Logo

Javascript

Response to preflight request doesn't pass access control check - No 'Access-Control-Allow-Origin' header

javascript
cORS
http-headers
local-development

Jquery/javascript to replace broken images

javascript
image-handling
error-handling
cross-browser

How do I create a GUID / UUID?

javascript
uuid
performance
best-practices

Open URL in same window and in same tab

javascript
url-redirection
window-open
location-replace

How to use jQuery to select a dropdown option?

javascript
jquery
dropdown
event-simulation

Print the contents of a DIV

javascript
print
dynamic-content
cross-browser

Href image link download on click

javascript
download
server-side
browser-compatibility

How to create a dictionary and add key value pairs dynamically in JavaScript

javascript
dictionary
dynamic-keys
object-methods

Iterate through object properties

javascript
object-iteration
destructuring
modern-js

Jasmine JavaScript Testing - toBe vs toEqual

javascript
jasmine
matchers
testing

Make a link open a new window (not tab)

javascript
window-open
pop-up-blockers
browser-behaviors

Endswith in JavaScript

javascript
endswith
performance
regex

Javascript Form Submit - Confirm or Cancel Submission Dialog Box

javascript
form-validation
user-experience
dialog-box

What is the "right" JSON date format?

javascript
json
iso-8601
date-handling

Most efficient way to create a zero filled JavaScript array?

javascript
array-initialization
performance
typed-arrays

Local Storage vs Cookies

javascript
local-storage
cookies
web-apps

I am getting an "Invalid Host header" message when connecting to webpack-dev-server remotely

javascript
webpack
dev-server
remote-access

Generate random string/characters in JavaScript

javascript
random-string
crypto
best-practices

Switch Statement for Multiple Cases in JavaScript

javascript
switch-statement
higher-order-functions
best-practices

Scrollintoview Scrolls just too far

javascript
scrolling
css-properties
smooth-scroll