Advertisement
CR7CR7

if-else

Sep 18th, 2022
558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. let input = [
  2.   '25',
  3. ];
  4.  
  5. let print = this.print || console.log;
  6. let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);
  7.  
  8. /*let age = +gets();
  9. let under30 = false;
  10.  
  11. if (age < 30) {
  12.   under30 = true;
  13. }
  14.  
  15. console.log('Age is under 30: ' + under30);*/
  16. var str = "hello"
  17. if (!!str) {
  18.   print(true);
  19. } else {
  20.   print(false);
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement