choice1="paper"
is an assignment, not a comparison. Use ===
for comparisons (unless you need type coercion, in which case use ==
)
More Related Contents:
- Javascript / Html Check box error [closed]
- How to convert string to date object in javascript? [duplicate]
- Ways to circumvent the same-origin policy
- Self-references in object literals / initializers
- Replace multiple strings with multiple other strings
- EmberJS: How to load multiple models on the same route?
- onchange event on input type=range is not triggering in firefox while dragging
- jQuery – multiple $(document).ready …?
- BehaviorSubject vs Observable?
- Stringify (convert to JSON) a JavaScript object with circular reference
- Viable options for running NodeJS on Android (Aug 2017)
- What is the JavaScript >>> operator and how do you use it?
- Is && statement() the same as if() statement()?
- Add content to a new open window
- How do you test for NaN in JavaScript?
- JavaScript triple greater than
- Tried to Load Angular More Than Once
- Use :hover to modify the css of another class?
- modify a css rule object with javascript [duplicate]
- window.variableName
- How to convert milliseconds into a readable date?
- Writing a json object to a text file in javascript
- How to get cookie expiration date / creation date from javascript? [duplicate]
- Why is my function being called twice in React?
- Javascript – String concatenation [duplicate]
- How does the (function() {})() construct work and why do people use it?
- collapse and expand tabs jquery / simple accordion
- How to include local javascript on a Gatsby page?
- How can I get the Typescript compiler to output the compiled js to a different directory?
- How do I put this on Real-Time? I already put (async: True) but it doesnt work