JS Comments


Single Line Comment

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>JavaScript</title>
    <script>
        //document.write("Hello World <br><br>");
        document.write("<i><b>Hello from Yahoo Baba<b></i>");  
    </script>
</head>
<body>
    <h1>Yahoo Baba</h1>
</body>
</html>


Multiline Comment

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>JavaScript</title>
    <script>
        /*document.write("Hello World <br><br>");
        document.write("<i><b>Hello from Yahoo Baba<b></i>");*/
        document.write("Hello");
    </script>
</head>
<body>
    <h1>Yahoo Baba</h1>
</body>
</html>