Explain Codes LogoExplain Codes Logo

Javascript

Display unescaped HTML in Vue.js

javascript
prompt-engineering
best-practices
security

Are there legitimate uses for JavaScript's "with" statement?

javascript
javascript-best-practices
scope-management
modern-javascript

Ternary Operation in CoffeeScript

javascript
prompt-engineering
best-practices
functions

Add/remove HTML inside div using JavaScript

javascript
event-delegation
dom-interactions
performance-optimization

Limit number of characters allowed in form input text field

javascript
prompt-engineering
functions
callbacks

Dom element to corresponding Vue.js component

javascript
vuejs
dom
refs

Detect URLs in text with JavaScript

javascript
prompt-engineering
functions
callbacks

How to add and remove classes in Javascript without jQuery

javascript
class-list
browser-adaptation
polyfills

Jquery.click() vs onClick

javascript
event-delegation
performance
best-practices

How to set data attributes in HTML elements

javascript
data-attributes
javascript-attributes
dom-manipulation

Difference between jQuery vs. AngularJS vs. Node.js

javascript
javascript-frameworks
web-development
server-side-development

How can get the text of a div tag using only javascript (no jQuery)

javascript
prompt-engineering
best-practices
security

Encode HTML entities in JavaScript

javascript
xss-prevention
html-entities
browser-compatibility

Angular 5 FormGroup reset doesn't reset validators

javascript
form-group
validation
angular

Simplest way to merge ES6 Maps/Sets?

javascript
promises
callbacks
performance

Angular2, what is the correct way to disable an anchor element?

javascript
prompt-engineering
accessibility
best-practices

Access props inside quotes in React JSX

javascript
jsx
react
javascript-features

Can I use jQuery with Node.js?

javascript
nodejs
cheerio
async

Read environment variables in Node.js

javascript
environment-variables
node-js
variable-access

How do you create a toggle button?

javascript
responsive-design
best-practices
browser-compatibility