how to create a while loop that prints once a certain y value is reached js code example Example: do while javascript do { //whatever } while (conditional);