Error:
Microsoft’ was used before it was defined.
I am using bing MAP API to implement the bing map in my webpage.
var map;
function getMap() {
map = new Microsoft.Maps.Map(document.getElementById('myMap'), {credentials: 'bing map key'});
}
How do I use function in js file without a jslint error?
Exclude the Microsoft object from JSLint’s inspection.
http://www.jslint.com/lint.html