If the answer ends with a 0, it should be rounded off without the 0. So instead of 5.50, we should get 5.5.

This requirment?

This comment is hidden because it contains spoiler information about the solution

Rash assumption with init. Will fail for [2].reduce((x,y) => x*y).

init

[2].reduce((x,y) => x*y)

what about integers?

I didn't guess

to avoid the or statemnt just use name.lower() so you can just check the lower case 'r'

This will fail because if you pass a falsy value as undefined or any other it will evaluate it as a truthy value and return Yes.

undefined

Can use Array.from({length: n+1})

Array.from({length: n+1})

Does anyone know why VIM syntax ^ and $ are valid in JS?

you taught me something new .. thanks

It's not 0 for non-integers. 2.5 % 1 = ?

2.5 % 1 = ?

Hello.I'm a beginner, and I'm just learning to program.I have a question:what is the result of finding the remainder when dividing by 1?After all, the remainder will always be 0.

This is no longer needed for python 3

isinstance() returns a boolean indicating whether the first argument is an instance of the type(s) in the second argument, or a subclass thereof.

isinstance()

what is the use of isinstance function never heard of it.

If the answer ends with a 0, it should be rounded off without the 0. So instead of 5.50, we should get 5.5.

This requirment?

This comment is hidden because it contains spoiler information about the solution

Rash assumption with

`init`

. Will fail for`[2].reduce((x,y) => x*y)`

.what about integers?

I didn't guess

to avoid the or statemnt just use name.lower() so you can just check the lower case 'r'

This will fail because if you pass a falsy value as

`undefined`

or any other it will evaluate it as a truthy value and return Yes.Can use

`Array.from({length: n+1})`

Does anyone know why VIM syntax ^ and $ are valid in JS?

you taught me something new .. thanks

It's not 0 for non-integers.

`2.5 % 1 = ?`

Hello.I'm a beginner, and I'm just learning to program.I have a question:what is the result of finding the remainder when dividing by 1?After all, the remainder will always be 0.

This is no longer needed for python 3

`isinstance()`

returns a boolean indicating whether the first argument is an instance of the type(s) in the second argument, or a subclass thereof.what is the use of isinstance function never heard of it.

## Loading more items...