Skip to main content
Tom Clarkson's user avatar
Tom Clarkson's user avatar
Tom Clarkson's user avatar
Tom Clarkson
  • Member for 13 years, 11 months
  • Last seen more than 8 years ago
awarded
awarded
awarded
awarded
awarded
Loading…
comment
JavaScript Phone Screen
declaring a variable without giving it a value isn't a particularly good idea either. There are patterns where it could come up, such as using a set variable as the exit condition on a search loop, but it's far from universal - maybe you typically use small functions instead of simple blocks or declare all the variables at function level.
comment
JavaScript Phone Screen
That would depend on your pre-JavaScript background - if you are used to a language that enforces block level scope you won't think of using variables outside their block and therefore never run into any issues.
comment
JavaScript Phone Screen
In that case you have bigger problems - with no compiler errors available, keeping code easily readable is particularly important. Not sure how you could ask about it as a simple phone question, but it would work quite well as a "what's wrong with this code" question.
answered
Loading…
answered
Loading…
Loading…
Loading…
Loading…
answered
Loading…
comment
What quality level in the commit history can/should I expect/enforce?
No, you keep the full history, but a merge is actually a new commit with multiple parents, so you can see which commits are merges into master. A simple convention on commit messages to determine what sort of log they go into may also help.
Loading…
Loading…
Loading…
answered
Loading…