Explain Codes LogoExplain Codes Logo

Javascript

What's the difference between event.stopPropagation and event.preventDefault?

javascript
event-handling
event-propagation
event-prevention

Smooth scroll to div id jQuery

javascript
smooth-scroll
jquery
cross-browser-compatibility

Pad a number with leading zeros in JavaScript

javascript
prompt-engineering
functions
polyfills

Convert object array to hash map, indexed by an attribute value of the Object

javascript
object-array
hash-map
javascript-utility-functions

Rails 4: how to use $(document).ready() with turbo-links

javascript
event-handling
turbolinks
rails

How to count certain elements in an array?

javascript
performance
functions
callbacks

How to iterate over a JavaScript object?

javascript
iteration
object-entries
map

How to pass props to {this.props.children}

javascript
react
context-api
prop-injection

Webpack file-loader outputs [object Module]

javascript
webpack
file-loader
es-modules

Jquery find element by data attribute value

javascript
prompt-engineering
functions
template-literals

Accessing an object property with a dynamically-computed name

javascript
prompt-engineering
functions
callbacks

Detecting a mobile browser

javascript
responsive-design
mobile-detection
browser-detection

Getting the last element of a split string array

javascript
string-manipulation
array-methods
javascript-utility-functions

How to clear the canvas for redrawing

javascript
canvas-engineering
performance
best-practices

Sorting an array of objects by property values

javascript
custom-sorting
array-sort
javascript-arrays

Angularjs Directive Restrict A vs E

javascript
angularjs
directive
restrict

How to check a radio button with jQuery?

javascript
prompt-engineering
functions
callbacks

Twitter Bootstrap Tabs: Go to Specific Tab on Page Reload or Hyperlink

javascript
prompt-engineering
responsive-design
performance

Converting HTML string into DOM elements?

javascript
dom-parser
html-string
dom-elements

How to Copy Contents of One Canvas to Another Canvas Locally

javascript
canvas-engineering
performance
web-development