JavaScript If, Then

Edit This Code :
Result :