Completed the triangle exercise for Javascript BDD assessment.