408,372 views
12 votes
12 votes
What would be the output of the following code?

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

User Alberte
by
2.8k points

1 Answer

21 votes
21 votes

Answer:

answer: 3

Step-by-step explanation:

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

User Benstpierre
by
2.9k points