All Questions
10 questions
6
votes
3
answers
1k
views
Finding even or odd numbers
I'm looking for critiques to see what I could have done better or different ways I could approach writing a script for finding even or odd numbers. I am new to programming with JavaScript, and ...
6
votes
1
answer
134
views
A simple reactjs form to calculate the liquidity ratio, daily cost of running, and days cash on hand
This is just a very simple form that tells you the liquidity ratio, daily cost of running, and days cash on hand of a company, given their current assets, current liabilities, and total expense of the ...
5
votes
1
answer
1k
views
Caesar Cipher [The Odin Project-Javascript Exercise]
Very new to coding, so please don't bully me.
Implement the legendary caesar cipher:
In cryptography, a Caesar cipher, also known as Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, ...
4
votes
2
answers
4k
views
Return the first word with the greatest number of repeated letters
I'm learning JavaScript and have written a function that accepts a string and returns the first word with the greatest number of repeated letters. For example:
Input:"Hello apple pie" - Output:"Hello"...
2
votes
0
answers
81
views
Sort ascending/descending functionally
I've been trying to get into functional programming with javascript and have tried to make some experiments with currying and function composition.
What I've played with so far is a sorter function ...
2
votes
1
answer
138
views
Manipulating arrays to extract unique objects and count occurrences
The data describes cycling activities (key1) and chunks of them (key2). In total there are around 1,000 ...
3
votes
1
answer
153
views
Quicksort in JavaScript, using nested functions
I come from Java/Swift environment. So, I'm used to show the user of my code only "what is necessary".
For JavaScript I use Visual Code.
When I try to use the Intellisense feature, it shows all my ...
3
votes
1
answer
112
views
JavaScript moneyFormat() function
Using JSX syntax I wrote a function that takes either a float or an integer as a parameter and returns a formatted string. I'd like any feedback for refactoring the code.
...
5
votes
1
answer
288
views
Voting app in JavaScript using Ramda
I'm just learning functional programming in JavaScript using Ramda.
I took this tutorial and implemented the server core.js component using Ramda.
The idea is that we'll have a collection of things ...
12
votes
1
answer
2k
views
Responsive/adaptive website code
I have all these functions that work together to create functionality on a page. Is the structure of these functions OK? Can I do anything to speed this up or make my code better? I'm not exactly ...