Why do i get "Expected an assignment or function call and instead saw an expression"

93 views
Skip to first unread message

jansen...@gmail.com

unread,
Mar 18, 2018, 3:16:06 AM3/18/18
to JSHint
If i write the code:

(function () {"use strict";
$(document).ready(function()
{
$("#loginbutton").click(function()
{
$(".login-form").show(300);
});  
});
});

Dreamweaver gives an error: "Expected an assignment or function call and instead saw an expression".
How can i fix that? He gives the error on the last row.
Reply all
Reply to author
Forward
0 new messages