<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="utf-8">
    <title>Membuat Quotes di dalam JavaScript String</title>
</head>
<body>
    <script>
    // Buat variabel
    var a = "Ini hari Jum'at.";
    var b = 'Dia berkata "Halo" kemudian pergi.';
    var c = 'We\'ll never give up.';
    
    // Cetak nilai variabel
    document.write(a + "<br>");
    document.write(b + "<br>");
    document.write(c);
    </script>
</body>
</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.