Explain Codes LogoExplain Codes Logo

Javascript

How can I update the parent's state in React?

javascript
react-hooks
state-management
best-practices

Safely turning a JSON string into an object

javascript
json-parse
error-handling
validation

How do I preserve line breaks when getting text from a textarea?

javascript
text-processing
event-listeners
dom-manipulation

Send POST data using XMLHttpRequest

javascript
xmlhttprequest
post-requests
javascript-requests

Highlight a word with jQuery

javascript
prompt-engineering
functions
callbacks

Get the difference between 2 dates in JavaScript?

javascript
date-calculations
javascript-date
utc-normalization

Npm install cannot find module 'semver'

javascript
npm-install
nodejs-reinstallation
package-management

Trigger a button click with JavaScript on the Enter key in a text box

javascript
prompt-engineering
event-delegation
cross-browser-support

How to detect DIV's dimension changed?

javascript
resize-observer
responsive-design
performance

How to get a URL parameter in Express?

javascript
express
middleware
routing

How do I convert a float number to a whole number in JavaScript?

javascript
math-functions
number-conversion
javascript-performance

How to change the size of mat-icon on Angular Material?

javascript
responsive-design
css-variables
viewport-units

How do I remove objects from a JavaScript associative array?

javascript
javascript-objects
array-manipulation
delete-operator

Export html table data to Excel using JavaScript / JQuery is not working properly in chrome browser

javascript
exporting-tables
cross-browser-support
data-uris

How can I write a test which expects an 'Error' to be thrown in Jasmine?

javascript
test-engineering
error-handling
jasmine-matchers

Working with $scope.$emit and $scope.$on

javascript
event-driven-programming
angularjs
best-practices

Why does my JavaScript code receive a "No 'Access-Control-Allow-Origin' header is present on the requested resource" error, while Postman does not?

javascript
cors
access-control-allow-origin
postman

What's the difference between '$(this)' and 'this'?

javascript
callback-functions
event-handling
jquery-objects

How to add images in select list?

javascript
responsive-design
promises
callbacks

How to submit a form with JavaScript by clicking a link?

javascript
event-listeners
form-submission
accessibility