Explain Codes LogoExplain Codes Logo

Javascript

Most efficient way to convert an HTMLCollection to an Array

javascript
javascript-convert
array-methods
htmlcollection

Javascript CSS how to add and remove multiple CSS classes to an element

javascript
class-manipulation
javascript-techniques
web-development

How to escape hash character in URL

javascript
url-encoding
javascript-functions
web-development

Delete first character of a string if it's '0'

javascript
string-manipulation
regular-expressions
functions

".addeventlistener is not a function" why does this error occur?

javascript
event-listeners
dom-manipulation
javascript-best-practices

How to remove item from array by value?

javascript
array-manipulation
javascript-prototype
filter-method

Textarea that can do syntax highlighting on the fly?

javascript
syntax-highlighting
code-editor
textarea

How can I guarantee that my enums definition doesn't change in JavaScript?

javascript
enum
javascript-best-practices
object-freeze

Find a value in an array of objects in Javascript

javascript
prompt-engineering
functions
callbacks

Disable all form elements inside div

javascript
prompt-engineering
functions
callbacks

Get client time zone from browser

javascript
time-zone-detection
client-side-timezone
browser-timezone

Node.js Port 3000 already in use, but it isn't?

javascript
port-management
process-termination
nodemon

Wait cursor over entire HTML page

javascript
prompt-engineering
ajax
wait-cursor

Converting user input string to regular expression

javascript
prompt-engineering
functions
callbacks

Disable time in bootstrap date time picker

javascript
datetimepicker
momentjs
internationalization

Get selected value in dropdown list using JavaScript

javascript
prompt-engineering
functions
callbacks

Incrementing a date in JavaScript

javascript
date-manipulation
time-zone
daylight-saving-time

Overriding interface property type defined in Typescript d.ts file

javascript
type-aliases
interface-extension
type-safety

Where does npm install packages?

javascript
npm
package-management
node-modules

Map function for objects (instead of arrays)

javascript
object-transformation
javascript-techniques
functional-programming