Object Expected Error, javascript, jQuery

I get the expected error of an object in a javascript file. In this case, does that mean jQuery files are not included properly?

The line causing the error ...

$(function () {

Error in browser ...

Message: Object expected
Line: 6
Char: 1
Code: 0
+3
source share
1 answer

Perhaps - if the files were not included, the variable would $really not be the object where it was expected. "Expected Objects" usually means that you have a variable null/ undefined, and then try to call methods on it.

I would try to find out if this has a case with simple alert($);and see if the result is undefined(bad) or something else (maybe good).

+5
source

Source: https://habr.com/ru/post/1785173/


All Articles