return
cannot have LineTerminator
after it so:
return
{
};
is treated as return;
(return undefined
) instead of return {};
(return an object)
See the rules for Automatic Semicolon Insertion (ASI)
for more.
More Related Contents:
- How can I beautify JSON programmatically? [duplicate]
- Tool to Unminify / Decompress JavaScript [closed]
- How do I set up VSCode to put curly braces on a new line?
- How can i create html automatic change page? [duplicate]
- What is the difference between a function expression vs declaration in JavaScript? [duplicate]
- Changing website favicon dynamically
- Clearing all cookies with JavaScript
- Keyboard shortcuts with jQuery
- What is the difference between window, screen, and document in JavaScript?
- Can jQuery .keypress() detect more than one key at the same time?
- Reading uploaded text file contents in html
- Is reading the `length` property of an array really that expensive an operation in JavaScript?
- Get IFrame’s document, from JavaScript in main document
- Write elements into a child iframe using Javascript or jQuery
- How To Determine Which Submit Button Was Pressed, Form onSubmit Event, Without jQuery [duplicate]
- Image manipulation and texture mapping using HTML5 Canvas?
- How to make embedded hasMany relationships work with ember data
- When to prefer JSON over XML?
- Uploading File using Ajax in Asp.Net Core
- Is there a way to throttle javascript performance to simulate a slow client
- How to check if css value is supported by the browser?
- javascript syntax: function calls and using parenthesis
- How to store persistent data client side
- How to get direct url for youtube videos
- Find the shortest string in array
- Synchronous console logging in Chrome
- Permission denied to access property in IFRAME
- Get the days, hours and minutes in Moment.js
- How do I make a callable JS object with an arbitrary prototype? [duplicate]
- How to escape backslash in JavaScript?