I got the console test to run by commenting //var $ = window.jQuery;
I used the solution files which are a little further along but do not contain that declaration.
The test ran. very cool. need to better understand why this line is the issue. I believe it may have been my challenge in an earlier exercise. Does it become unnecessary at some point in the project?
Hi @ddecasse! Hmm, if you’re commenting out var $ = window.jQuery; that’s sidestepping the intention behind parameter mapping (e.g. injecting the window object to the IIFE).
Could you try uncommenting out that line and we can walk through to see what’s happening? Perhaps put a breakpoint at the var $ = window.jQuery; line and see what’s going on?
I’ll bet your <script> tag for jQuery comes later than it should in index.html—make sure it comes before the others so the jQuery variable is defined before your own code runs
Just wanted to post that I ran into this error and it was that my cdn jquery reference was using a slim version and my guess (I’ll research this more) is that this version of jquery does not implement the .post method.
thanks for the follow up. I am on the last project now. I must say i love
the book . but issues like this have detracted a little bit. i may be doing
hte labs all over again just to get the best idea of all of it. maybe.
I’m working thru all the chapters on JS in preparation for teaching JS in the Fall semester. I’ve found a couple of things that did not seem to work, upon review of the instructions and my code, 100% of the time I’ve found that I missed something.
This can also help us work on our debugging skill-set, which will serve us well as we continue our programming adventures.