What will be the output of the following code snippet?

What will be the output of the following code snippet?

var a = true + true + true * 3;
print(a)

1 Like

the correct output is 5

2 Likes

the coorect ans is 9

correct answer is 5

var a = true + true + true * 3;

1 Like

the correct ans is 5

the correct ans is 5

answer is 5 cause of BOD MAS

1 Like

the correct ans is 5

1 Like