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.
Indentation is OK now. The line
is missing a
let
;i
is currently implicitly a blogal variable.function test
is defined twice. Don't Repeat Yourself, move that somewhere where both blocks can see it. JavaScript test suites don't leak into the solution, so top level definitions are not a problem. ( Do not move it toPreloaded
- that, intentionally, does leak into solutions. )Don't rely on ASI. Insert your own semicolons.
maybe this will help: JavaScript Style Guide
Is this how I should do it?
n
andrequired
now both mean the same thing. they should have the same name.Please indent your test suite properly. In six months, a maintainer ( possibly you ) will thank you for it.
Changed to closeTo()
fixed them
Sumit tests should include example tests. Do not just have random submit tests. The last thing you want is a solution passing the submit tests while failing the example tests.
Do not compare floating point numbers for strict equality. This is documented.
do you mean
?
This seems to be what you're asking, but I couldn't read it in the description; I had to reverse engineer an example.
If a kata has solutions, it cannot be deleted. Something with database integrity, and solution points.
You can't (neither can I). Let it be.
How can i delete this kata. Because it keep says "User does not have permission to perform this action" when i try to delete it.
Unfortunately, it's not your call.
You can think it's fine, but your kata will be downvoted to retirement because the voters don't think it's fine. See https://docs.codewars.com/authoring/tutorials/create-first-kata/#kata-ideas-and-duplicates You are welcome to discuss how unfair this is on
Discord#help-authoring
.You are also welcome to take your chances republishing this. You'll be making work for yourself and for beta testers, and you may not gain any friends doing that after you have been warned, but you can. Experience says you'll have to be quite stubborn to lose your authoring privileges ( though it's been known to happen ).
If I sound a little exasperated, it's because you are by far not the first inexperienced author to publish a duplicate kata, get it unpublished, and then opine that it's not a duplicate. So many people just don't believe it when they're told.
The weird input and single character input mark the difference, so it's not a duplicate. So I think it's fine.
Loading more items...