illegal break statement javascript code example Example: illegal break statement break is used to break out of loops