JSFiddle - React, Tailwind, and code Playground

by Paco86

JavaScript

class Node{
    constructor(val){
        this.val = val
        this.next = null;      
    }
}

class SinglyLinkedList{
    
    constructor(val){
        this.head = null;
        this.tail = null;
        this.length = 0;
    }
    
    push(val){
    	if (this.length === 0) {
      	
      }
    }
}