I started learning JavaScript last week, I saw this code yesterday and I did some research about it, but now I can’t figure what it does:
var y=document.forms['post'];
var x=y.message.value;
x=x.replace(/</gi,'(').replace(/\</gi,'(');
y.message.value=x;
Here is my understanding of it:
post.valueproperty of tagmessage.<and put(in message.xto originaly