JavaScript sometimes has no

CSDN Q & A 2022-02-13 05:11:46 阅读数:127

javascript

JS Write code , Same format , But some code breaks , The boss helps you take a look at the code !

img




Take the answer :
(8<5)&&(4<6)+'<br>'(8<5) by false , So no further judgment ,+br Equal to him , So I didn't calculate ((8<5)&&(4<6))+'<br>', In this way, we can , Regardless of the result of the previous logical operation , Are added to the following string 


Other answers 2:

Don't put the
Written in judgment , Otherwise, when the previous judgment appears false after , The following statements will not be executed . Go straight to the next judgment

copyright:author[CSDN Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130511442809.html