Explain Codes LogoExplain Codes Logo

Javascript

Setting a backgroundImage With React Inline Styles

javascript
react
webpack
es6

Looping through localStorage in HTML5 and JavaScript

javascript
localStorage
serialization
deserialization

Get all non-unique values (i.e.: duplicate/more than one occurrence) in an array

javascript
prompt-engineering
performance
best-practices

Should I use encodeURI or encodeURIComponent for encoding URLs?

javascript
url-encoding
security-best-practices
javascript-functions

Insert a string at a specific index

javascript
string-manipulation
prototype-methods
code-reusability

$(document).ready equivalent without jQuery

javascript
dom-readiness
vanilla-js
javascript-optimizations

How to filter object array based on attributes?

javascript
filter
array
javascript-8

How can I validate an email address in JavaScript?

javascript
regex
email-validation
javascript-regex

How to replace plain URLs with links?

javascript
linkification
url-parsing
regex

Query-string encoding of a JavaScript object

javascript
prompt-engineering
functions
recursion

Selecting element by data attribute with jQuery

javascript
prompt-engineering
best-practices
performance

Convert relative path to absolute using JavaScript

javascript
prompt-engineering
functions
callbacks

How to update nested state properties in React

javascript
react
immutability
state-management

Http GET request in JavaScript?

javascript
async-await
fetch-api
xmlhttprequest

Not showing placeholder for input type="date" field

javascript
responsive-design
performance
web-development

What techniques can be used to define a class in JavaScript and their trade-offs?

javascript
object-oriented-programming
prototype-based-inheritance
closures

How can I select an item with a class within a DIV?

javascript
dom-selection
jquery
dom-traversal

Reloading the page gives wrong GET request with AngularJS HTML5 mode

javascript
angularjs
html5-mode
server-configuration

.trim() in JavaScript not working in IE

javascript
polyfills
compatibility-checks
browser-sniffing

Reactjs: "Uncaught SyntaxError: Unexpected token <"

javascript
prompt-engineering
linting-tools
babel