dev-serum
Search...
Ctrl
K
Data Structures & Algorithms
Coding Challenges
Codewars
8Kyu
Get Nth Even Number
Previous
Twice as old
Next
No zeros for heros
Last updated
4 years ago
Was this helpful?
Approach
Solution
JavaScript
Copy
const nthEven = (n) => n * 2 - 2;
Get Nth Even Number
Codewars