If statements in Javascript allow us to ask questions and then perform an action. Your mind does this on a daily basis, even a simple task like crossing the road. Once we have asked the question in our mind we then want the action to occur such as walking across the road one step at a time. If statements in programming allow us to do this.
This Javascript tutorial is brought to you by http://www.avelx.co.uk/ - Coding tutorials to help you grow.