I want to print the contents of HTML. For this I have created a function and in this function I have passed the div ID in it. But the choose shown the following message. 
My javascript is under document.ready function
function printDiv(divName) {
  var printContents = document.getElementById(divName).innerHTML;
  var originalContents = document.body.innerHTML;
  document.body.innerHTML = printContents;
  window.print();
  document.body.innerHTML = originalContents;
}
And here I am getting error Unused function printDev
I have tried to enable NodeJS and NPM but still no use
Any help would be highly appreciated.

 
     
    