Whenever vm8 encounters a property that doesn't exist, it will display an error message like this:
Cannot read property 'value' of null. For example, when passing an id that doesn't exist:
var pass = document.getElementById('pass');
if (pass.value == '') // An error occurs due to the null property
My question is: How can we prevent the compiler from encountering this line of code with a proper condition? Thank you