learning and start building a chat

After many difficult hours trying to figure out AJAX, I have resulted
in watching youtube videos, which are giving me lots of PHP code at
first, which will be good practice to re-vamp in js.