namespace LinkedList {  
    
class Node {
    public data: number;
    public next: Node;
    
    constructor(data: number) {
        this.data = data;
        this.next = null;
    }
}    
    
const head = new Node(1);
console.log(head);
    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: