JavaScript 오류 정리

1.[JS] (err) Uncaught TypeError: Assignment to constant variable.

post-thumbnail

2.[JS] (err) Uncaught ReferenceError: birth_year is not defined.

post-thumbnail

3.[JS] (err) Uncaught SyntaxError: Identifier 'num2' has already been declared

post-thumbnail

4.[JS] (err) Uncaught ReferenceError: Cannot access 'num2' before initialization at window.onload

post-thumbnail

5.[JS] (err) Uncaught TypeError: city is not a function.

post-thumbnail

6.[JS] (err) Uncaught TypeError: Cannot read properties of undefined (reading '3')

post-thumbnail

7.[JS] (err) Uncaught TypeError: num is not iterable.

post-thumbnail

8.[JS] (err) Uncaught TypeError: The comparison function must be either a function or undefined.

post-thumbnail

9.[JS] (err) Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')

post-thumbnail

10.[JS] (err) Uncaught SyntaxError: Unexpected token ')'

post-thumbnail

11.[JS] (err) Uncaught SyntaxError: Unexpected end of input

post-thumbnail

13.[JS] (err) SyntaxError: invalid assignment left-hand side

post-thumbnail

14.[JS] (err) Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

post-thumbnail

15.[JS] (err) Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.

post-thumbnail

16.[JS] (err) Uncaught RangeError: Maximum call stack size exceeded.

post-thumbnail

17.[JS] (err) Uncaught SyntaxError: Expected ':' after property name in JSON

post-thumbnail

18.[JS] (err) Refused to apply style from ~ because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

post-thumbnail

19.[JS] (err) Uncaught SyntaxError: "[object Object]" is not valid JSON.

post-thumbnail

20.[JS] (err) Uncaught SyntaxError: Unexpected non-whitespace character after JSON.

post-thumbnail

21.[JS] (err) Uncaught ReferenceError: Cannot access 'jsObj' before initialization

post-thumbnail

22.[JS] (err) Failed to load resource: the server responded with a status of 400 (Bad Request).

post-thumbnail

23.[JS] (err) Uncaught TypeError: Failed to construct 'XMLHttpRequest': Please use the 'new' operator, this DOM object constructor cannot be called as a function.

post-thumbnail

24.[JS] (err) TypeError: a.Jf is not a function.

post-thumbnail

26.[JS] (err) Access to XMLHttpRequest at 'https://apis.map.kakao.com/download/web/data/chicken.json' from origin 'http://localhost:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

post-thumbnail

27.[JS] (err) GET https://apis.map.kakao.com/download/web/data/chicken.json net::ERR_FAILED 200

post-thumbnail

28.[JS] (err) TypeError: Cannot set properties of null (setting 'innerHTML')

post-thumbnail

29.[JS] (err) NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN

post-thumbnail

30.[JavaScript] (err) await is only valid in async functions and the top level bodies of modules

post-thumbnail