Hacker News new | past | comments | ask | show | jobs | submit login

> doesn't remember the difference between .call and .apply

Simply getting the names mixed up and needing to look them up is one thing, but if the unfamiliarity stems from a general unfamiliarity with those methods and their respective use cases, then it would be a red flag for a "senior dev" sort of position.




I like to associate `.apply` with "Array", and `.call` with "Columns".

    f.apply(this, arrayOfArgs); // Array

    f.call(this, arg1, arg2, arg3); // Columns


"Columns" -> "call()'ems"

:)


Oh, that's good


I have a similar association, but use "Commas" in place of "Columns".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: