Explain Codes LogoExplain Codes Logo

Javascript

How do I chop/slice/trim off last character in string using Javascript?

javascript
functions
callbacks
promises

How to compute the sum and average of elements in an array?

javascript
functions
promises
callbacks

Using jQuery how to get click coordinates on the target element

javascript
event-delegation
click-coordinates
responsive-design

How can I group an array of objects by key?

javascript
reduce
groupby
lodash

What is the non-jQuery equivalent of '$(document).ready()'?

javascript
dom
utility-functions
promises

Get the last item in an array

javascript
array-methods
javascript-performance
utility-functions

Angular window resize event

javascript
rxjs
angular
event-handling

Jquery, get html of a whole element

javascript
jquery-plugin
dom-manipulation
performance-optimization

Map and filter an array at the same time

javascript
reduce
map
filter

Adding script tag to React/JSX

javascript
react-hooks
script-loading
best-practices

Nodejs vs node on ubuntu 12.04

javascript
nodejs
ubuntu
nvm

How to get start and end of day in Javascript?

javascript
time-zones
date-formatting
javascript-libraries

Remove blank attributes from an Object in Javascript

javascript
prompt-engineering
functions
immutability

Jquery selectors on custom data attributes using HTML5

javascript
prompt-engineering
selectors
custom-data-attributes

Access variables and functions defined in page context from an extension

javascript
script-injection
extension-development
page-context

To Call onChange Event After Pressing Enter Key

javascript
event-handling
react-hooks
state-management

How to get the pure text without HTML element using JavaScript?

javascript
prompt-engineering
functions
callbacks

How to check if an array is empty or exists?

javascript
array-validation
javascript-best-practices
variable-declaration

Get first and last date of current month with JavaScript or jQuery

javascript
date-handling
javascript-date-object
timezone-issues

Difference between jQuery’s .hide() and setting CSS to display: none

javascript
callbacks
performance
best-practices