189k views
5 votes
What would be the output of the following code?

var x=15%4
var y=20% 3
console.log(x+y);

User Trogvar
by
4.6k points

1 Answer

2 votes

Answer:

answer: 3

Step-by-step explanation:

explanation: 15%4=3 and 20%3=2 so the output is 3

User Kenneth Spencer
by
4.2k points