Closed kavitshah8 closed 10 years ago
I'm not seeing why this would lead to a performance improvement; Tree.data
was only ever assigned once. Care to explain?
Due to the if-else logic, those two lines will not execute together.
Make sense. I failed to realize that. Basically, I was working on Technical Exercise
which is a part of interview process. I have to propose something for it. I liked hgrid
project so I was reading its source code and thought that might be a good place to use java scripts ||
operator. I am also reading test.js in the project as I have some background in unit testing. Most likely I will propose something in testing which might be appropriate.
No problem. Best of luck!
This code uses only one assignment statement.