Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Fully agree on the random tests, no discussion there.
But I think it's up to the author whether or not to restrict the kata to primitive types or not. If not, how to count unprimitives is the next decision - by constructor, by typeof, or all of 'em as objects. Whichever way, it should be specified ( and that can be as simple as adding "the given array will contain only primitive datatypes" to the description ). But it's a choice. ( Which may affect ranking. )
I thought that might be the case, so thanks for the clarity.
This comment is hidden because it contains spoiler information about the solution
The
BigInt
primitive is in stage 3/4 of the ECMAScript specification, and not all browsers/engines support it. The latest version of node to support it is10.4.0
and since this kata doesn't support10.4.0
, theBigInt
primitive does not apply.I'm new to JS, but I did just notice this:
There are 7 primitive data types: string, number, bigint, boolean, null, undefined, and symbol.
https://developer.mozilla.org/en-US/docs/Glossary/Primitive
is this valid?
I suggest you check how to write random tests and add them to this kata.
Sorry for the mistakes and thanks for pointing them out. Fixed.
Another typo: primitve
Also, separate the examples in different lines.
you're welcome. also: I believe the expression you're looking for is not "how much" (as in intensity/degree) but rather "how many" (as in quantity/amount)
Fixed, thanks
Symol