score:0

Try this

getRoundedYMaxValue(number) {
        var numLen = number.toString().length;
        var dividerValue = "1"
        for (var i = 0; i < numLen - 1; i++) {
            dividerValue += 0
        }
        return Math.ceil(number / dividerValue) * dividerValue
    }

Related Query

More Query from same tag