Reset Form with JavaScript Function

On

I going to shared simple JavaScript function for reset all form fields very easily. JavaScript: <script type=“text/javascript”> function reset(){   var demoObj = document.getElementsByClassName(“demo”);   for(let i=0;i<demoObj.length;i++){   //set blank for all input type field   demoObj[i].value=””;   if(demoObj[i].name===“A” || demoObj[i].name===“D”){  …

error: