Explain Codes LogoExplain Codes Logo

Javascript

What is x-tmpl?

javascript
template-engineering
variable-interpolation
browser-caching

What is the shortest function for reading a cookie by name in JavaScript?

javascript
regex
performance
best-practices

What is the shortcut in Visual Studio Code for console.log

javascript
snippet-engineering
debugging-tools
vscode-shortcuts

What is the purpose of the dollar sign in JavaScript?

javascript
prompt-engineering
functions
callbacks

What is the JavaScript version of sleep()?

javascript
async-await
event-loop
non-blocking

What is the JavaScript equivalent of var_dump or print_r in PHP?

javascript
debugging
console-log
json-stringify

What is the explicit promise construction antipattern and how do I avoid it?

javascript
promise-engineering
async-await
callback-handling

What is the difference between window, screen, and document in JavaScript?

javascript
event-listeners
dom-manipulation
viewport

What is the difference between .js and .mjs files?

javascript
es-modules
commonjs
module-system

What is the difference between decodeURIComponent and decodeURI?

javascript
uri-decoding
javascript-functions
best-practices

What is the difference between call and apply?

javascript
functions
callbacks
this-context

What is the difference between Bower and npm?

javascript
package-management
dependency-management
npm-vs-bower

What is the bower (and npm) version syntax?

javascript
dependency-management
semver
package-dependencies

What is the best way to test for an empty string with jquery-out-of-the-box?

javascript
prompt-engineering
functions
callbacks

What is the best way to add options to a select from a JavaScript object with jQuery?

javascript
jquery-optimization
dom-management
performance-optimization

What is causing this error - "Fatal error: Unable to find local grunt"

javascript
grunt-installation
npm-init
local-vs-global

What is “assert” in JavaScript?

javascript
assertions
debugging
testing

What happened to Lodash _.pluck?

javascript
es6-alternatives
lodash-mixin
performance-optimization

What does the JSLint error 'body of a for in should be wrapped in an if statement' mean?

javascript
for-in-loops
javascript-best-practices
prototype-inheritance

What does npm install --legacy-peer-deps do exactly? When is it recommended / What's a potential use case?

javascript
npm-configuration
package-management
dependency-resolution