Explain Codes LogoExplain Codes Logo

Javascript

What's the easiest way to call a function every 5 seconds in jQuery?

javascript
timers
setinterval
javascript-timers

How do I check whether an array contains a string in TypeScript?

javascript
array-methods
typescript
javascript-features

How to copy static files to build directory with Webpack?

javascript
webpack
file-loader
url-loader

Jquery Ajax POST example with PHP

javascript
ajax
post
best-practices

How to run a single test with Mocha?

javascript
test-engineering
mocha
testing-best-practices

Equivalent of jQuery .hide() to set visibility: hidden

javascript
prompt-engineering
functions
callbacks

Using an HTML button to call a JavaScript function

javascript
event-listeners
javascript-syntax
web-development

React Router with Optional Path Parameter

javascript
react-router
path-parameters
routing

Draw a connecting line between two elements

javascript
responsive-design
promises
callbacks

Strip HTML tags from text using plain JavaScript

javascript
prompt-engineering
functions
callbacks

How to format time since xxx e.g. “4 minutes ago” similar to Stack Exchange sites

javascript
time-formatting
date-handling
performance

Get month name from Date

javascript
date-formatting
localization
intl-datetimeformat

How to trigger event in JavaScript?

javascript
event-dispatching
vanilla-js
event-handling

How do I make Firefox auto-refresh on file change?

javascript
live-reload
file-monitoring
firefox-development

Extract part of a regex match

javascript
regex
match
javascript-regex

Axios handling errors

javascript
axios
error-handling
interceptors

How to check if an array is empty or does not exist?

javascript
prompt-engineering
functions
callbacks

How do I get the collection of Model State Errors in ASP.NET MVC?

javascript
error-handling
model-state
asp-net-mvc

How does group by work in sequelize?

javascript
sequelize
group-by
sql-aggregations

Is it not possible to stringify an Error using JSON.stringify?

javascript
error-handling
json-stringify
error-serialization