JSFiddle - React, Tailwind, and code Playground

by Steven Senkus

JavaScript

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

class LinkedList {
		constructor(dataArr) {
    	this.dataArr = dataArr;
    }
    
    convertArrayToLinkedList() {
    	this.list = this.dataArr.reduce(item => {
      
      });
    }
}