Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- function lol() {
- console.log("LOL");
- }
- }
- lol(); // possible, same as [var lol = function..]
- {
- let kek = function() {
- console.log("KEK");
- }
- kek(); // works
- }
- kek(); // error, as expected
- {
- let function rofl() { // syntax error..
- console.log("ROFL");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement