Advertisement
davidxcgdr

1st script in JavaScript

Jan 3rd, 2021
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // FIRST SCRIPT IN JAVASCRIPT!!! :D
  2.  
  3. var test1 = 1;
  4. var test2 = (this.test1 + this.test1);
  5.  
  6. if (this.test1 > this.test2) {
  7. console.warn("wtf happend") // will log this if 1 > 2 if 1 is bigger than 2. nah obviously no LOL
  8. } else {
  9. console.log("YES") // will log "YES" if 1 < 2. obviously
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement