Comparing two strings to see if they’re the same.
Use the equality operator (==) within a conditional test:
var strName = prompt("What's your na...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
copy from JavaScript Cookbook