Explain Codes LogoExplain Codes Logo

Javascript

How do you make an anchor link non-clickable or disabled?

javascript
prompt-engineering
responsive-design
best-practices

Link and execute external JavaScript file hosted on GitHub

javascript
cdn
github-pages
cors

Converting between strings and ArrayBuffers

javascript
prompt-engineering
text-decoder
text-encoder

Async/await Class Constructor

javascript
async-programming
constructor-pattern
async-await

What's the difference between console.dir and console.log?

javascript
console-logging
console-dir
console-log

How can I set multiple CSS styles in JavaScript?

javascript
prompt-engineering
functions
performance

Code not running in IE 11, works fine in Chrome

javascript
polyfills
compatibility
debugging

React Hooks useState() with Object

javascript
state-management
react-hooks
functional-updates

Jquery click event not working after append method

javascript
event-delegation
jquery
best-practices

Find if a textbox is disabled or not using jquery

javascript
jquery
javascript-8
event-handlers

How to get the current date or/and time in seconds

javascript
timestamp
date-now
time-zone

Javascript add leading zeroes to date

javascript
date-formatting
locale-specific-formatting
zero-padding

Escape text for HTML

javascript
html-escaping
xss-prevention
html-entities

How to add conditional attribute in Angular 2?

javascript
prompt-engineering
interview-preparation
attribute-binding

Jquery vs document.querySelectorAll

javascript
vanilla-javascript
performance
best-practices

How to prevent form resubmission when page is refreshed (F5 / CTRL+R)

javascript
form-validation
csrf-protection
client-side-validation

How to change value of object which is inside an array using JavaScript or jQuery?

javascript
map
functions
best-practices

How to Implement DOM Data Binding in JavaScript

javascript
data-binding
event-driven
reactive-patterns

Javascript for...in vs for

javascript
loop-types
javascript-loops
iteration-techniques

Binding arrow keys in JS/jQuery

javascript
event-handling
key-binding
keyboard-events