No, there is not. With ES6, you might be able to use an arrow function: ()=>{} which is a bit shorter.
If you really need this very often (you shouldn't?!), you can declare one yourself:
function noop(){}
and then refer to that repeatedly. If you don't want to clutter your scope, you can also use the Function.prototype function (sic!) which does nothing but constantly return undefined - yet that's actually longer than your function expression.
No, there is not. With ES6, you might be able to use an arrow function: ()=>{} which is a bit shorter.
If you really need this very often (you shouldn't?!), you can declare one yourself:
function noop(){}
and then refer to that repeatedly. If you don't want to clutter your scope, you can also use the Function.prototype function (sic!) which does nothing but constantly return undefined - yet that's actually longer than your function expression.
ES6 one could be:
const noop = () => {};
Be careful if using Babel as it compiles differently - instead you can explicitly return something:
const noop = () => ({});
See this tweet as to why the curly braces are important: https://twitter.com/_ericelliott/status/601420050327711744?lang=en
Videos
server.listen(port, hostname, () => { console.log(Server running at http://${hostname}:${port}/); });
Sorry, this was one of the only confusing parts from the starter code for me