Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- req.on('end', function onEnd() {
- console.log('winning');
- });
- req.on('end', function() {
- console.log('losing');
- });
- function someName() { someStatements(); }
- function someName() { someStatements(); }
- setTimeout(function someName() { someStatements(); }, 500);
- var f = function g() {
- return 1;
- };
- if (false) {
- f = function g(){
- return 2;
- };
- }
- g(); // 2
- req.on('end', function onEnd() {
- console.log(onEnd); //function body
- });
- console.log(onEnd); //ReferenceError: onEnd is not defined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement