Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // My issue is the alert() below, express.js shows "undefined is not a function"
- script
- - if (1==1) { msg = alert('success') } else { msg = 'nope' }
- p= msg
- TypeError: /Users/MU/Desktop/node/nodeAPI2/views/login.jade:5
- 3| center
- 4| script
- > 5| - if (1==1) {msg = alert('worked')} else {msg = 'nope'}
- 6| table(align="center")
- 7|
- 8| th(align="")
- ==========================================================================
- // The example below works just fine and displays "success" on the page.
- script
- - if (1==1) { msg = 'success' } else { msg = 'nope' }
- p= msg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement