I have been working on a small function to change the background of an HTML file, but I keep getting the 'Missing 'use strict' statement' error message from JSLint despite trying multiple solutions.
Can anyone suggest how to resolve this issue?
Here is the JavaScript code -
/*jslist browser = true*/
/*global $, jQuery, alert*/
/*jshint strict: true*/
$(document).ready(function () {
$('#black').click(function () {
'use strict';
$('.outer-container').css('background-color', '#000');
$('.outer-container').css('color', '#fff');
$('a:link').css('color', 'white');
$('a.hover').css('color', 'white');
$('a:visited').css('color', 'white');
});
});