how to print 1 when user enters 0 in input field without using any condition or loop in java script
<p>yesterday i went to an interview i was asked a question which is below</p>

<p>Create an <strong>input field</strong> and <strong>button</strong> user should enter only <strong>0 or 1</strong> when the user enters 0 the output should be 1. when the user enters 1 the output should be 0. Write the logic of minimum 5 possible way of the output?</p>

<p><strong>Note:</strong></p>

<p>We should not use any if,for,while,do while,if else,switch,.. (no condition and loops) should be used.</p>

<p>It should be done in java script and minimum 5 possible way to print the out .</p>

<p>I don't know whether it is possible or not for 5 times. if any one knows please help me </p>