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
c
java
cpp
c#
javascript
php
vb#
typescript
nodejs
go
rust
scala
swift
kotlin
pascal
html
ruby
dart
vbnet
r
css
bootstrap
win32
groovy
winapi
sql
mysql
jquery
pascal-string
lua
winforms
kotlin-string
cpp-string
c-string
swift-string
bash
go-string
php-string
c#-string
java-string
vbnet-string
cobol
python-string
rust-string
scala-string
javascript-string
cpp-vector
f#
opengl
typescript-string
pascal-array
swift-array
c-array
php-array
javascript-array
rust-vector
typescript-array
python-list
reactjs
scala-array
c-windows
nodejs-string
go-array
kotlin-array
nodejs-array
sdl2
cpp-matrix
sdl3
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
angularjs
split-string-into-array-by-delimiter
transpose-matrix
binary-search-algorithm
dot-product-two-arrays
generate-random-floating-point-numbers
all-permutations-combinations
kotlin-matrix
typescript-matrix
vbnet-array
kotlin-list
remove-characters-first-string-from-second-string
generate-8-digit-random-number
compare-two-dates
extract-all-digits-string
get-first-digit-after-decimal-point-float
remove-stop-words-string
check-whether-floating-point-variable-is-integer
longest-substring-without-repeating-characters
Disclosure:
My content contains affiliate links.
Recent questions tagged javascript
43,401
questions
56,365
answers
573
users
Recent questions tagged javascript
2
answers
16
views
How do you find the position of the most significant bit (MSB) of an unsigned integer in JavaScript
asked
4 days
ago
by
avibootz
javascript
javascript-position-msb-integer
position-msb-integer
1
answer
23
views
How to use XOR to swap two characters in a string in JavaScript
asked
5 days
ago
by
avibootz
javascript
javascript-xor-swap-two-characters-string
xor-swap-two-characters-string
1
answer
48
views
How to check whether the letters of a word exist in a string (order doesn't matter) in JavaScript
asked
Sep 27
by
avibootz
javascript
javascript-letters-of-word-exist-in-string-order-doesnt-matter
letters-of-word-exist-in-string-order-doesnt-matter
1
answer
48
views
How to find the element with minimum occurrences in an array with JavaScript
asked
Sep 25
by
avibootz
javascript
javascript-element-minimum-occurrences-array
element-minimum-occurrences-array
1
answer
47
views
How to convert multiple date formats to YYYY-MM-DD in JavaScript
asked
Sep 24
by
avibootz
javascript
javascript-convert-convert-date-formats-to-yyyy-mm-dd
convert-convert-date-formats-to-yyyy-mm-dd
1
answer
47
views
How to sort a list of string‑based dates in JavaScript
asked
Sep 23
by
avibootz
javascript
javascript-sort-list-string-based-dates
sort-list-string-based-dates
1
answer
44
views
How to print a number with a thousand separator as spaces in JavaScript
asked
Sep 22
by
avibootz
javascript
javascript-number-thousand-separator-spaces
number-thousand-separator-spaces
1
answer
75
views
How to extract the last N digits from a number in JavaScript
asked
Sep 18
by
avibootz
javascript
javascript-extract-last-n-digits-number
extract-last-n-digits-number
1
answer
73
views
How to extract all floating-point numbers from a string of words in JavaScript
asked
Sep 17
by
avibootz
javascript
javascript-extract-all-floating-point-numbers-string
extract-all-floating-point-numbers-string
1
answer
69
views
How to compute the factorial of a number greater than 20 in JavaScript
asked
Sep 14
by
avibootz
javascript
javascript-compute-factorial-of-number-greater-20
compute-factorial-of-number-greater-20
1
answer
76
views
How to select N unique random values that appear exactly once in an existing array with JavaScript
asked
Sep 13
by
avibootz
javascript
javascript-n-unique-random-values-appear-once-in-array
n-unique-random-values-appear-once-in-array
1
answer
71
views
How to select N unique random indices from an existing array in JavaScript
asked
Sep 12
by
avibootz
javascript
javascript-select-n-unique-random-indices-array
select-n-unique-random-indices-array
1
answer
71
views
How to find common words in two strings with JavaScript
asked
Sep 11
by
avibootz
javascript
javascript-string
javascript-find-common-words-two-strings
find-common-words-two-strings
1
answer
65
views
How to generate all trigrams (3-character sequences) from a given word in JavaScript
asked
Sep 9
by
avibootz
javascript
javascript-generate-all-trigrams-given-word
generate-all-trigrams-given-word
1
answer
82
views
How to compare two float arrays using a tolerance in JavaScript
asked
Sep 8
by
avibootz
javascript
javascript-compare-two-float-arrays-tolerance
compare-two-float-arrays-tolerance
1
answer
100
views
How to split text without spaces into a list of words using dictionary-based segmentation in JavaScript
asked
Sep 7
by
avibootz
javascript
split-text-without-spaces-into-words-dictionary
1
answer
77
views
How to convert numbers from 0 to 999,999,999,999,999 (up to 999 trillion) into English words in JavaScript
asked
Sep 6
by
avibootz
javascript
javascript-convert-numbers-0-999999999999999-english-words
convert-numbers-0-999999999999999-english-words
1
answer
87
views
How to parse a table into a binary tree in JavaScript
asked
Sep 5
by
avibootz
javascript
javascript-parse-table-into-binary-tree
parse-table-into-binary-tree
1
answer
80
views
How to declare, initialize, and print a medium complexity, varied, feature‑rich data structure in JavaScript
asked
Sep 3
by
avibootz
javascript
javascript-declare-initialize-print-medium-complexity-data-structure
declare-initialize-print-medium-complexity-data-structure
1
answer
92
views
How to sort an array of objects that contain nested objects using custom comparison logic in JavaScript
asked
Sep 1
by
avibootz
javascript
javascript-sort-array-of-objects-contain-nested-structs
sort-array-of-objects-contain-nested-structs
1
answer
77
views
How to find the N most frequent non‑stopwords in a text in JavaScript
asked
Aug 31
by
avibootz
javascript
javascript-n-most-frequent-non-stopwords-text
n-most-frequent-non-stopwords-text
1
answer
79
views
How to find the starting index of all occurrences of a word in a string in JavaScript
asked
Aug 30
by
avibootz
javascript
javascript-find-starting-index-all-occurrences-word-string
find-starting-index-all-occurrences-word-string
2
answers
114
views
How to split a string into words in JavaScript
asked
Aug 29
by
avibootz
javascript
javascript-split-string
javascript-split-string-into-words
split-string-into-words
1
answer
80
views
How to convert any digital storage unit into all others (B, KB, MB, GB, TB, PB, EB, ZB, YB) in JavaScript
asked
Aug 28
by
avibootz
javascript
javascript-convert-any-digital-storage-unit-into-all-others
convert-any-digital-storage-unit-into-all-others
1
answer
77
views
How to write the Tic-Tac-Toe game in JavaScript
asked
Aug 27
by
avibootz
javascript
javascript-tic-tac-toe-game
tic-tac-toe-game
1
answer
96
views
How to generate a series of unique HEX colors in JavaScript
asked
Aug 24
by
avibootz
javascript
javascript-generate-series-unique-hex-colors
generate-series-unique-hex-colors
2
answers
117
views
How to print the numbers 0 to 31 by changing 1 bit each time in JavaScript
asked
Aug 21
by
avibootz
javascript
javascript-print-0-31-changing-1-bit-each-time
print-0-31-changing-1-bit-each-time
4
answers
147
views
How to measure the time of a reverse string in JavaScript
asked
Aug 21
by
avibootz
javascript
javascript-measure-time-reverse-string
measure-time-reverse-string
1
answer
86
views
How to generate N random 1s in a zero-based matrix with JavaScript
asked
Aug 20
by
avibootz
javascript
javascript-generate-n-random-1-zero-based-matrix
generate-n-random-1-zero-based-matrix
1
answer
83
views
How to find the index of a prime number in JavaScript
asked
Aug 19
by
avibootz
javascript
javascript-index-of-prime-number
index-of-prime-number
1
answer
82
views
How to find the Nth prime number in JavaScript
asked
Aug 19
by
avibootz
javascript
javascript-find-n-prime-number
find-n-prime-number
1
answer
101
views
How to initialize an array with a range of numbers in JavaScript
asked
Aug 18
by
avibootz
javascript
javascript-initialize-array-range-of-numbers
initialize-array-range-of-numbers
1
answer
120
views
How to do modulo multiplication for 64‑bit values without using BigInteger in JavaScript
asked
Aug 16
by
avibootz
javascript
javascript-modulo-multiplication-64-bit-values-without-biginteger
modulo-multiplication-64-bit-values-without-biginteger
1
answer
118
views
How to remove every N‑th element from an array JavaScript
asked
Aug 15
by
avibootz
javascript
javascript-remove-every-n-element-array
remove-every-n-element-array
1
answer
114
views
How to build sparse array in JavaScript
asked
Aug 15
by
avibootz
javascript
javascript-build-sparse-array
build-sparse-array
1
answer
122
views
How to get the first N digits of a BigInteger in JavaScript
asked
Aug 14
by
avibootz
javascript
javascript-get-first-n-digits-biginteger
get-first-n-digits-biginteger
1
answer
121
views
How to extract and sort numbers from a string containing numbers and text in JavaScript
asked
Aug 12
by
avibootz
javascript
javascript-extract-sort-numbers-string
extract-sort-numbers-string
1
answer
113
views
How to convert radians to degrees and degrees to radians in JavaScript
asked
Aug 12
by
avibootz
javascript
javascript-convert-radians-degrees-degrees-radians
convert-radians-degrees-degrees-radians
1
answer
116
views
How to find the N smallest values in a 2D list in JavaScript
asked
Aug 10
by
avibootz
javascript
javascript-find-n-smallest-values-2d-array
find-n-smallest-values-2d-array
1
answer
115
views
How to sort an array with a single loop in JavaScript
asked
Aug 8
by
avibootz
javascript
javascript-sort-array-with-single-loop
sort-array-with-single-loop
1
answer
118
views
How to remove extra whitespace from a string in JavaScript
asked
Aug 8
by
avibootz
javascript
javascript-remove-extra-whitespace-string
remove-extra-whitespace-string
1
answer
131
views
How to calculate the distance between two latitude-longitude points in JavaScript
asked
Aug 7
by
avibootz
javascript
javascript-distance-between-two-latitude-longitude-points
distance-between-two-latitude-longitude-points
1
answer
118
views
How to remove duplicate words with Unicode characters from free‑text in JavaScript
asked
Aug 4
by
avibootz
javascript
javascript-remove-duplicate-words-unicode-free-text
remove-duplicate-words-unicode-free-text
1
answer
125
views
How to remove duplicate words from free‑text in JavaScript
asked
Aug 3
by
avibootz
javascript
javascript-remove-duplicate-words-from-free-text
remove-duplicate-words-from-free-text
1
answer
109
views
How to remove duplicate case‑insensitive words separated by multiple delimiters from a string in JavaScript
asked
Aug 2
by
avibootz
javascript
javascript-remove-duplicate-case-insensitive-words-multiple-delimiters-from-string
remove-duplicate-case-insensitive-words-multiple-delimiters-from-string
1
answer
114
views
How to perform high‑performance reversible text compression using a word dictionary in JavaScript
asked
Aug 1
by
avibootz
javascript
javascript-text-compression-using-word-dictionary
text-compression-using-word-dictionary
1
answer
127
views
How to traverse an array from both sides at the same time in JavaScript
asked
Jul 31
by
avibootz
javascript
javascript-traverse-array-both-sides-same-time
traverse-array-both-sides-same-time
1
answer
120
views
How to generate random Powerball lottery numbers (pick 5 numbers from 1-69 + 1 Powerball from 1-26) in JavaScript
asked
Jul 30
by
avibootz
javascript
javascript-generate-random-powerball-lottery-numbers-5-of-1-69-and-1-of-1-26
generate-random-powerball-lottery-numbers-5-of-1-69-and-1-of-1-26
1
answer
116
views
How to compute the total number of Powerball lottery combinations (5 out of 99 and 1 out of 26) in JavaScript
asked
Jul 29
by
avibootz
javascript
javascript-compute-total-number-powerball-lottery-combinations-5-99-and-1-26
compute-total-number-powerball-lottery-combinations-5-99-and-1-26
1
answer
115
views
How to generate random lottery numbers for 6 numbers out of 37 and 1 power number out of 7 in JavaScript
asked
Jul 28
by
avibootz
javascript
javascript-generate-random-lottery-numbers-for-6-out-of-37-power-1-out-of-7
generate-random-lottery-numbers-for-6-out-of-37-power-1-out-of-7
Page:
1
2
3
4
5
6
...
78
next »
...