<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="utf-8">
    <title>JavaScript Tipe Data Null</title>
</head>
<body>
    <script>
    var a = null;
    document.write(a + "<br>"); // Print: null
    
    var b = "Halo Dunia!"
    document.write(b + "<br>"); // Print: Halo Dunia!
    
    b = null;
    document.write(b) // Print: null
    </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.