Beginner: test on a variable

It is a computer language called javascript. It is not the same language as Java, whoever named it has been the cause of much confusion over the years.