JSFiddle - React, Tailwind, and code Playground

by Juan Alban Franco

HTML

<html>
<head>

</head>
<body>
<input type = textbox id = in value = 'Insert Password'><input type = button id = insert_pass >
<br>
<br>
<input type = textbox id = ch value = 'Check for Password'><input type = button id = search >
<br><br>



</body></html>

JavaScript

function SList() 
{
	this.head = null;
  this.tail = null;
	this.length;
}

function Node(){
	this.key = null;
  this.next = null;
}

SList.prototype.insert_pass = function (_Key){
var hash = '', i=0,char='';
if (_Key.length ===0){
	this.addnode(hash);
}
else{
	for (i = 0, i<_Key.length; i++){
  	char = _Key.charCodeAt(i);
    hash = 
  }
}


}


SList.prototype.addnode = function(_Key){
	var node = new Node();
  node.key = _Key;
  
  if(this.tail==null && this.head ==null){
  	this.tail = node;
    this.head = node;
    node.next = null;
    this.length ++;
  }
  else 
  	this.tail.next = node;
    this.tail = node;
}




function input () {

}