Remember
Register
Search With
Seek4Info.com
Programming & Software Q&A | CollectiveSolver
Questions
Tags
Users
Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.
Contact: aviboots(AT)netvision.net.il
Most popular tags
python
java
c
c#
cpp
javascript
php
vb#
typescript
nodejs
go
rust
scala
swift
kotlin
pascal
html
dart
ruby
r
css
bootstrap
win32
groovy
winapi
sql
mysql
jquery
pascal-string
lua
winforms
kotlin-string
bash
swift-string
c-string
cpp-string
go-string
c#-string
php-string
java-string
vbnet-string
rust-string
python-string
cpp-vector
f#
opengl
scala-string
javascript-string
pascal-array
c-array
swift-array
typescript-string
cobol
php-array
javascript-array
vbnet
rust-vector
typescript-array
python-list
reactjs
scala-array
c-windows
nodejs-string
go-array
kotlin-array
nodejs-array
sdl2
cpp-matrix
c-matrix
cpp-array
c#-list
vbnet-list
pascal-matrix
go-slice
c#-array
java-array
nodejs-express
character-code-ascii-unicode
swift-matrix
c#-matrix
sdl3
angularjs
generate-random-floating-point-numbers
all-permutations-combinations
kotlin-matrix
typescript-matrix
vbnet-array
kotlin-list
create-infinite-loop
rust-matrix
go-matrix
javascript-matrix
raylib
glfw
string-to-title-case
represent-boolean-true-false
different-functions-check-number-power-of-2
get-last-word-string
remove-last-word-string
calculate-surface-area-cuboid
Disclosure:
My content contains affiliate links.
Recent questions tagged javascript
40,696
questions
53,047
answers
573
users
Recent questions tagged javascript
10
answers
8
views
How to copy a string in JavaScript
asked
16 hours
ago
by
avibootz
javascript
javascript-copy-string
copy-string
1
answer
18
views
How to represent the Boolean "true" and "false" in JavaScript
asked
2 days
ago
by
avibootz
javascript
javascript-represent-boolean-true-false
represent-boolean-true-false
1
answer
18
views
How to print all possible permutations (all possible orderings) of the words in JavaScript
asked
2 days
ago
by
avibootz
javascript
javascript-all-possible-permutations-words
all-possible-permutations-words
1
answer
12
views
How to calculate relative past time from a given date & time (e.g., 3 hours ago, 5 days ago, a month ago) in JavaScript
asked
3 days
ago
by
avibootz
javascript
javascript-calculate-relative-past-time-date-time
calculate-relative-past-time-date-time
1
answer
17
views
How to add a new interval into a sorted array of non‑overlapping intervals in JavaScript
asked
Apr 9
by
avibootz
javascript
javascript-add-interval-into-sorted-array-non-overlapping-intervals
add-interval-into-sorted-array-non-overlapping-intervals
1
answer
17
views
How to print text diagonally from left to right recursively in JavaScript
asked
Apr 8
by
avibootz
javascript
javascript-print-text-diagonally-from-left-to-right-recursively
print-text-diagonally-from-left-to-right-recursively
1
answer
21
views
How to detect whether any intervals overlap in a list of start and end times with JavaScript
asked
Apr 8
by
avibootz
javascript
javascript-detect-intervals-overlap-list-start-end-times
detect-intervals-overlap-list-start-end-times
1
answer
20
views
How to print text diagonally from left to right in JavaScript
asked
Apr 8
by
avibootz
javascript
javascript-print-text-diagonally-from-left-to-right
print-text-diagonally-from-left-to-right
1
answer
23
views
How to find the k biggest values from an array in JavaScript
asked
Apr 6
by
avibootz
javascript
javascript-k-biggest-values-array
k-biggest-values-array
1
answer
23
views
How to find the maximum value we can achieve by picking k elements from an array in JavaScript
asked
Apr 6
by
avibootz
javascript
javascript-maximum-value-k-elements-array
maximum-value-k-elements-array
1
answer
28
views
How to check whether only 2 bits in a number at a specific position are on (edge‑case‑safe) with JavaScript
asked
Apr 3
by
avibootz
javascript
javascript-check-2-number-bits-specific-position-on-edge-case-safe
check-2-number-bits-specific-position-on-edge-case-safe
1
answer
24
views
How to write 4 different functions that check if a number is a power of 2 in JavaScript
asked
Apr 2
by
avibootz
javascript
javascript-different-functions-check-number-power-of-2
different-functions-check-number-power-of-2
1
answer
28
views
How to write 6 different functions that accept 5 or 7 and return the other number, without using if,switch in JavaScript
asked
Apr 1
by
avibootz
javascript
javascript-different-functions-accept-5-7-return-other-number
different-functions-accept-5-7-return-other-number
1
answer
21
views
How to copy bits from M into N (numbers) between bit positions i and j (edge‑case‑safe) in JavaScript
asked
Mar 30
by
avibootz
javascript
javascript-bits
javascript-copy-bits-m-into-n-between-positions-edge-case-safe
copy-bits-m-into-n-between-positions-edge-case-safe
1
answer
27
views
How to get the word before the last word from a string (edge‑case‑safe) in JavaScript
asked
Mar 29
by
avibootz
javascript
javascript-string
javascript-get-word-before-last-string-edge-case-safe
get-word-before-last-string-edge-case-safe
1
answer
27
views
How to find the median among three given numbers in JavaScript
asked
Mar 26
by
avibootz
javascript
javascript-median-among-three-given-numbers
median-among-three-given-numbers
1
answer
32
views
How to find the smallest number greater than a given number, using the same digits in JavaScript
asked
Mar 25
by
avibootz
javascript
javascript-smallest-number-greater-given-number-same-digits
smallest-number-greater-given-number-same-digits
2
answers
39
views
How to produce a sequential count in octal, starting at zero in JavaScript
asked
Mar 24
by
avibootz
javascript
javascript-sequential-count-octal
sequential-count-octal
5
answers
55
views
How to iterate over a collection of key-value pairs (associative array) in JavaScript
asked
Mar 23
by
avibootz
javascript
javascript-iterate-collection-key-value-pairs
iterate-collection-key-value-pairs
1
answer
32
views
How to write custom callback function to an array (apply a function to each element) in JavaScript
asked
Mar 20
by
avibootz
javascript
javascript-custom-callback-function-to-array
custom-callback-function-to-array
3
answers
25
views
How to apply a callback to an array (apply a function to each element) in JavaScript
asked
Mar 20
by
avibootz
javascript
javascript-callback-to-array
callback-to-array
1
answer
27
views
How to calculate the Ethiopian multiplication in JavaScript
asked
Mar 17
by
avibootz
javascript
javascript-ethiopian-multiplication
ethiopian-multiplication
1
answer
26
views
How to calculate the percentage change between two values in JavaScript
asked
Mar 16
by
avibootz
javascript
javascript-percentage-change-between-two-values
percentage-change-between-two-values
1
answer
28
views
How to write the 7 Boom game. If a number is divided by 7 or includes the digit 7, the user writes Boom in JavaScript
asked
Mar 15
by
avibootz
javascript
javascript-7-boom-game
7-boom-game
1
answer
34
views
How to find the longest shared prefix among all words in a string with JavaScript
asked
Mar 14
by
avibootz
javascript
javascript-longest-shared-prefix-words-string
longest-shared-prefix-words-string
2
answers
51
views
How to group words in a string by the first N letters in JavaScript
asked
Mar 13
by
avibootz
javascript
javascript-group-words-string-first-n-letter
group-words-string-first-n-letter
1
answer
37
views
How to find the longest common prefix of all the words in a string with JavaScript
asked
Mar 12
by
avibootz
javascript
javascript-longest-common-prefix-all-words-string
longest-common-prefix-all-words-string
1
answer
39
views
How to split a string on multiple multi‑character delimiters (and keep them) in JavaScript
asked
Mar 10
by
avibootz
javascript
javascript-split-string-multiple-multi-character-delimiters
split-string-multiple-multi-character-delimiters
1
answer
41
views
How to split a string on multiple single‑character delimiters (and keep them) in JavaScript
asked
Mar 9
by
avibootz
javascript
javascript-split-string-multiple-single-character-delimiters
split-string-multiple-single-character-delimiters
1
answer
28
views
How to remove all adjacent duplicate characters from a string until no more can be removed in JavaScript
asked
Mar 7
by
avibootz
javascript
javascript-remove-adjacent-duplicate-characters-string
remove-adjacent-duplicate-characters-string
1
answer
39
views
How to find missing alphabet characters from a string in JavaScript
asked
Mar 7
by
avibootz
javascript
javascript-missing-alphabet-characters-string
missing-alphabet-characters-string
1
answer
42
views
How to reverse only the alphabetic characters in a string, keeping other characters in place with JavaScript
asked
Mar 6
by
avibootz
javascript
javascript-reverse-only-alphabetic-characters
reverse-only-alphabetic-characters
1
answer
32
views
How to check if a string contains only 0 and 1 and is divisible by 7 in JavaScript
asked
Mar 1
by
avibootz
javascript
javascript-string-contains-only-0-and-1-is-divisible-by-7
string-contains-only-0-and-1-is-divisible-by-7
1
answer
29
views
How to check if every digit in a number appears only once in JavaScript
asked
Feb 26
by
avibootz
javascript
javascript-check-digits-number-appears-once
check-digits-number-appears-once
1
answer
34
views
How to find all happy numbers in a specific range with JavaScript
asked
Feb 24
by
avibootz
javascript
javascript-find-happy-numbers-in-specific-range
find-happy-numbers-in-specific-range
1
answer
29
views
How to pass arguments to immediately invoked function expression (IIFE) in JavaScript
asked
Feb 22
by
avibootz
javascript
javascript-pass-arguments-immediately-invoked-function
pass-arguments-immediately-invoked-function
1
answer
31
views
How to pass arguments to an arrow function in JavaScript
asked
Feb 22
by
avibootz
javascript
javascript-pass-arguments-arrow-function
pass-arguments-arrow-function
1
answer
31
views
How to pass arguments to an inline anonymous function (callback) in JavaScript
asked
Feb 22
by
avibootz
javascript
javascript-pass-arguments-inline-anonymous-function
pass-arguments-inline-anonymous-function
2
answers
37
views
How to pass arguments to an anonymous function in JavaScript
asked
Feb 22
by
avibootz
javascript
javascript-pass-arguments-anonymous-function
pass-arguments-anonymous-function
1
answer
37
views
How to convert a number to any base in JavaScript
asked
Feb 21
by
avibootz
javascript
javascript-convert-number-to-any-base
convert-number-to-any-base
1
answer
41
views
How to count uppercase, lowercase, special characters, and numeric values using RegEx in JavaScript
asked
Feb 20
by
avibootz
javascript
javascript-count-uppercase-lowercase-special-characters-numeric-regex
count-uppercase-lowercase-special-characters-numeric-regex
1
answer
31
views
How to simulate rolling two dice (game cubes) with values 1–6 in JavaScript
asked
Feb 18
by
avibootz
javascript
javascript-simulate-rolling-two-dice-values-1-6
simulate-rolling-two-dice-values-1-6
1
answer
49
views
How to remove the last n occurrences of a substring in a string in JavaScript
asked
Feb 16
by
avibootz
javascript
javascript-remove-last-n-occurrences-substring-string
remove-last-n-occurrences-substring-string
1
answer
39
views
How to replace a random word in a string with a random word from an array of words using JavaScript
asked
Feb 13
by
avibootz
javascript
javascript-replace-random-word-in-string-with-random-word-from-array
replace-random-word-in-string-with-random-word-from-array
1
answer
47
views
How to find the shortest identical consecutive subarray in an array with JavaScript
asked
Feb 9
by
avibootz
javascript
javascript-shortest-identical-consecutive-subarray
shortest-identical-consecutive-subarray
1
answer
43
views
How to move the n word to the end of a string in JavaScript
asked
Feb 6
by
avibootz
javascript
javascript-move-n-word-to-end-of-string
move-n-word-to-end-of-string
2
answers
64
views
How to move the first word to the end of a string in JavaScript
asked
Feb 5
by
avibootz
javascript
javascript-move-first-word-to-end-of-string
move-first-word-to-end-of-string
1
answer
37
views
How to move a word to the end of a string in JavaScript
asked
Feb 5
by
avibootz
javascript
javascript-move-word-to-end-of-string
move-word-to-end-of-string
1
answer
36
views
How to multiply every N consecutive items in an array with JavaScript
asked
Feb 1
by
avibootz
javascript
javascript-multiply-every-n-of-consecutive-items-in-array
multiply-every-n-of-consecutive-items-in-array
3
answers
69
views
How to sort a list of data classes by multiple columns in JavaScript
asked
Jan 29
by
avibootz
javascript
javascript-sort-list-of-data-classes-by-multiple-columns
sort-list-of-data-classes-by-multiple-columns
Page:
1
2
3
4
5
6
...
76
next »
...