dev-serum
Search...
Ctrl
K
Data Structures & Algorithms
Coding Challenges
Codewars
8Kyu
Convert to Binary
Previous
Find the Difference in Age between Oldest and Youngest Family Members
Next
Thinkful - Number Drills: Pixelart planning
Last updated
4 years ago
Was this helpful?
Solution
JavaScript
Copy
const toBinary = (n) => Number(n.toString(2));
Convert to Binary
Codewars