Coding

JavaScript Accepts both Double Quotes and Single Quotes – JavaScript Tutorial

getElementById()

This example explain how JavaScript Accepts both Double Quotes and Single Quotes “” , ”

document.getElementById('demo').innerHTML = 'Hello JavaScript';
<br/>
document.getElementById("demo").innerHTML = "Hello JavaScript";
Try It Yourself - Online Compliler >>