What line of code describes you best? 🤔
katyadee (1118)

Okay, I lifted this from Quora, but I thought it was a really cool question with lots of ways to interpret it! What line of code describes y'all best?

You are viewing a single comment. View All
vedprad1 (707)
function main() {
  var x = 0;
}
main();
console.log(x); // Error: x is undefined

You can interpret this two ways:
1. I constantly forget about scope.
2. I think I know who I am, but then I realize I do not. (I'm undefined.)

Everyone says: "Woah!"

s206984 (2)

@vedprad1 That's deeper than my English teacher can analyze a novel

s206984 (2)

@Helixable My english teacher has powers beyond unknown to analyze novel

vvc (58)

@vedprad1 hey mat how do u create a 404 page

vedprad1 (707)

@vvc : If you are using express, it is simple. Just have this as your last route just before the starting of the server:

app.get('*', function (req, res) {
  res.status(404).send('404 Not Found');
});
vvc (58)

@vedprad1 when i use express my repl never wakes up

vedprad1 (707)

@vvc : Could you show me an example of your repl?

vvc (58)

@vedprad1 ok i got some of this code from https://repl.it/@jajoosam/4ty2 cuz i was trying to make a 404

Link to my repl: https://repl.it/@vvc/newvvc

do u mind forking and fixing it up then sending me the link

u dont have to if u dont want to though

vedprad1 (707)

@vvc : I feel like there is a problem somewhere else in your code, and this error is affecting all the other stuff. I am not sure how to fix it, because I cannot find the error. It is probably in your JSON.

vvc (58)

@vedprad1 wait, so my repl works now, check it out at https://@vvc/hello

So im later gonna create a 404.html page or maybe right now. First things when i get a domain will my repl not wake up and just finish loading faster, or is there a way for the repl to load as soon as u get to the web. + can u tell me how to link my repl 404 error code to my 404.html page