JS Style Guide

Example

<!DOCTYPE html>
<html>
<body>

<h2>My Web Page</h2>

<p>The best place to break a code line is after an operator or a comma.</p>

<p id=”demo”></p>

<script>
document.getElementById(“demo”).innerHTML =
“Hello Dolly.”;
</script>

</body>
</html>

Output

My Web Page

The best place to break a code line is after an operator or a comma.

Updated: February 12, 2019 — 11:11 am
Java Script © 2019