about | help | code help+videos | done | prefs |
Given two positive numbers, return true if they both have the same number of digits and false if they have different numbers of digits. HINTMath.log10(n) gives the log base 10 of n. Math.floor(n) rounds down to the integer at or below a given decimal number. apcsaPrimitivesSameMagnitude(5, 8) → true apcsaPrimitivesSameMagnitude(5, 81) → false apcsaPrimitivesSameMagnitude(50, 81) → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 150
Copyright Nick Parlante 2017 - privacy