0
When making the code in jQuery for a website I came across the error "use strict"
. This error happens more exactly on line 2 "Missing 'use strict'"
not letting it run. Needed help in solving it if possible.
$(document).ready(function() {
$('jq--secaaestcb').waypoint(function(direction) {
if (direction === "down") {
$('nav').addClass('nav-scroll');
} else {
$('nav').removeClass('nav-scroll');
}
}, {
offset: '60px;'
});
});
Hello Paul! What is the error that gives you? You can put here the text of the error?
– Sergio
Good afternoon. The error that appears is " Missing 'use Strict' statement" more exactly in line 2, so it is not possible to execute the code.
– Jokerby
I see no reason for that error in the code. Do you have more code than that? are you sure it’s in that file?
– Sergio
Yes it is. :/ is the only jq code I have. I’m using Dreamweaver I don’t know if it makes a difference.
– Jokerby