I'm sure there is a perfectly logical explanation to why this isn't working the way I want it to but I am new to JavaScript so would love some help. Is there any reason you would know as to why it prints out yes even when I want it to print out no. Thanks in advance
<script type="text/javascript">
var username = prompt("What is your VC?");
if (username = "wow") {
greeting = document.write("yes");
} else {
document.write("no");
}
</script>