Explain Codes LogoExplain Codes Logo

Javascript

Angularjs: Clear $watch

javascript
angularjs
watch
best-practices

Angularjs 1.2 $injector:modulerr

javascript
angularjs
routing
best-practices

Angular IE Caching issue for $http

javascript
prompt-engineering
http-headers
cache-control

Angular: conditional class with *ngClass

javascript
angular
class-binding
conditional-class

Angular 2+ and debounce

javascript
debounce
angular
rxjs

Advantages of using prototype, vs defining methods straight in the constructor?

javascript
prototype-engineering
inheritance
performance

Add property to an array of objects

javascript
javascript-best-practices
functional-programming
performance-optimization

Add new value to an existing array in JavaScript

javascript
array-manipulation
best-practices
javascript-8

Adding onClick event dynamically using jQuery

javascript
event-handling
jquery
dynamic-content

Adding elements to an object in JavaScript

javascript
object-manipulation
javascript-objects
array-operations

Adding div element to body or document in JavaScript

javascript
dom-manipulation
performance-optimization
accessibility

Add a property to a JavaScript object using a variable as the name?

javascript
prompt-engineering
functions
callbacks

A CSS selector to get the last visible div

javascript
prompt-engineering
best-practices
responsive-design

Accessing the Web Page's HTTP Headers in JavaScript

javascript
promises
callbacks
cors

Access a variable outside the scope of a Handlebars.js each loop

javascript
handlebars
javascript-helpers
context-access

How do I check if an HTML element is empty using jQuery?

javascript
prompt-engineering
functions
callbacks

Browser: Uncaught ReferenceError: require is not defined

javascript
module-bundling
es6-modules
browser-compatibility

Remove leading zeros from a number in JavaScript

javascript
prompt-engineering
functions
callbacks

Passing an array as a function parameter in JavaScript

javascript
spread-operator
function-parameters
array-manipulation

Is there a “not in” operator in JavaScript for checking object properties?

javascript
prompt-engineering
functions
callbacks