All Questions
47 questions
0
votes
0
answers
50
views
How can I make the webRTC and signaling feature code production ready?
I am learning webRTC and tried to implement signaling service through websockets. I am still a beginner in backend development so not sure how correct my code is. Can you please review it and let me ...
3
votes
1
answer
126
views
A Language Bot: For creating noun declension or verb conjugation tables
I'm a freshman student.
What does my program solve?
This is actually a bot for reddit, and there are language learning subreddits on that website, sometimes when discussing something with people, we ...
2
votes
0
answers
701
views
Cows and bulls game in JavaScript
I've been working on this game the last 2 days. The game is working but I need a feedback for my code. Can it be made simpler? Sorry if my code is very complicated or not well written: I am in the ...
1
vote
1
answer
113
views
Three efficient JavaScript functions that converge to pi extremely fast
I am learning JavaScript and decided to translate my Python scripts into JavaScript.
Approximations of π are extremely popular programming challenges and I am sure they must be a staple of the ...
1
vote
1
answer
228
views
JavaScript function that generates Fibonacci like sequences of given order
Generalizations of Fibonacci numbers
Fibonacci numbers of higher order
A Fibonacci sequence of order \$n\$ is an integer sequence in which each
sequence element is the sum of the previous \$n\$
...
3
votes
1
answer
158
views
A simple JavaScript function that does prime factorization
This is a simple JavaScript function that does prime factorization.
I wrote it on an Android phone with online editor (I don't have access to computers in night time):
Code:
...
2
votes
2
answers
1k
views
FizzBuzz in JavaScript (node.js), my first JavaScript program
I had just decided to learn JavaScript, so I wrote this program. I am sure you know what FizzBuzz is so I wouldn't describe it here.
Console output:
...
3
votes
1
answer
68
views
New TV Episode Checker
My code checks if a new subbed episode of a TV show is out by checking the designated blog. The blogs url returns a json which is then parsed for episode number, direct video link, embed video link, ...
3
votes
1
answer
97
views
Online implementation of the game "Compatibility"
This is an online implementation of a game: Compatibility. You can find the rules here.
The idea is to have a browser that perform all the game's mechanics and to discuss with your friends through a ...
6
votes
1
answer
883
views
Nodejs async with express server
I use the following code which works as expected. The code uses open ID connect to login user. Because I'm pretty new to node and express, it will be great if I can ...
6
votes
1
answer
74
views
creating accounts with passportJs
I'm currently building an application using Passport and bcrypt for user authentication. I've created the registration part. Is there anything I could improve on? I'm still getting the hang of writing ...
4
votes
0
answers
169
views
HSL Guessing Game in Svelte
The objective of the game is to guess the hue, saturation, and lightness values of a given color swatch across ten rounds.
https://github.com/shreyasminocha/guess-the-hsl
https://guess-the-hsl.now.sh
...
3
votes
1
answer
506
views
Reading a text file, manipulating it and saving it to a mongo database
We have an upcoming project at work which is going to require working with express.js. I have no prior experience with node.js, so I thought I'd try and do something aside from some courses. Are there ...
3
votes
2
answers
182
views
Reading image files asynchronously and displaying them on the page
I am trying to display images from a folder in my project using the "fs" module with NodeJS. I need to read all images in a directory and run them in a loop for them to be displayed. I was able to do ...
2
votes
1
answer
77
views
HTML & CSS Minifier
I am new to Javascript and Node.js but wanted to create a minifier in order to minify and escape double quotes in the HTML file. Could you let me know what I could improve in the code and how I can ...