TZinovieva

Read Text

Oct 11th, 2022
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function readText(input) {
  2.     let index = 0;
  3.     let name = input[index];
  4.     index++;
  5.  
  6.     while (name !== "Stop") {
  7.         console.log(name);
  8.  
  9.         name = input[index];
  10.         index++;
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment