0
I need to know code is correct in JavaScript? have another way to write code && ,|| statement below code
let adult = 5; let children= 2; let price = adult*12 + children*5; console.log(price); if(adult<0){ adult=0; } console.log(adult); if(children<0){ children=0; } console.log(children);
1 Antwort
+ 5
You can check it in js playground...
Do you facing any problem with code?
What is your task by this code?