Reply to comment

Your reply

You need to sign up / log in to reply to this comment

Existing comment

I think 6) has an error in the comment. For the comment to apply it the line of code should've read: var currentAge = customer?.profile?.age?; and not var currentAge = customer?.profile?.age;

As for 2), I like the new syntax, my only problem with this is that the debugger does not seem to be aware of it, ie you cannot step through each of the init statements whereas with the old-style assignment statements you can of course.

Thanks for commenting

Please remember:
Be polite, helpful and keep a positive attitude
Keep it short
Use examples
Review spelling and grammar

Please avoid:
Long texts
Code that is untested
Wall of text