JS Ternary functions with multiple conditions?

前端 未结 9 582
花落未央
花落未央 2020-12-31 04:44

I have been using a ternary operator in JavaScript to modify the value of an object based on user input. I have the following code, which runs as it should:

         


        
9条回答
提交回复
热议问题