Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. // My issue is the alert() below, express.js shows "undefined is not a function"
  2. script
  3. - if (1==1) { msg = alert('success') } else { msg = 'nope' }
  4. p= msg
  5.  
  6. TypeError: /Users/MU/Desktop/node/nodeAPI2/views/login.jade:5
  7. 3| center
  8. 4| script
  9. > 5| - if (1==1) {msg = alert('worked')} else {msg = 'nope'}
  10. 6| table(align="center")
  11. 7|
  12. 8| th(align="")
  13.  
  14. ==========================================================================
  15.  
  16. // The example below works just fine and displays "success" on the page.
  17. script
  18. - if (1==1) { msg = 'success' } else { msg = 'nope' }
  19. p= msg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement