You need to sign in or sign up before continuing.×
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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
it is not a good idea to make
func
its own context. Betterthis
, so the function context can be set by callingspread
in whatever context you choose.http://www.codewars.com/kata/reviews/549a1986dc7d62983d00003d/groups/54c5c20a0cfcdc76d3000aec
Solution does not run without obviously incorrect tabbing for python. Adding tabs causes solution to pass all tests.
This bug still seems to be kicking around.
Apparently some caching bug, resolved itself after 2 minutes.
Although I've deleted my comment, it still shows up on the dashboard.
Hi.
For a long time since now, I have only "Beta" tasks on my dashboard, even though "Fundamentials" category is chosen and "Approved Only" in "Account settings" chosen.
Is there a possibility to restrict proposal of "Beta" tasks at all?
Thanks
Cluttering
String.prototype
with helper functions really isn't good practice either. No sense in cluttering the global scope either. Best practice would probably be to create a function within the scope ofisAnagram
, since it'll only be needed by it. Although, there's really nothing wrong with just repeating the string operation. It's not a complex enough operation to make outsourcing it absolutely necessary.I agree with you about the ternary operator, though.
a == b ? true : false
is probably one of the dumbest anti-patterns ever.This comment is hidden because it contains spoiler information about the solution
I'm sure you are all right. JS is very confusing at times. A function can not hold a variabel that 'this' can access right? An object (called through the this keyword) can access it's properties via dot-, or bracket notation. Then what's the point of using a function as the object as you have no use for the 'this'?
Let's try to keep the w3schools references to a minimum please...
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects#Object_everything
To complement the info provided by Kamilius.
http://www.w3schools.com/Js/js_object_definition.asp
Hi karlpokus. The thing is, that in javascript literally everything is an object
Hi hilario! Yes. I know. But can that argument (the object to use as this) be a function? Functions are not objects are they?
Loading more items...