JS challenge question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

JS challenge question

I didn't understand this question. If I call the function guess(c,b,a); output is 21, that is understandable but in case of guess(a,c,b); output is 25, means c takes b's place. how? please help me to understand this. var a=2,b=3,c=5; function guess(c,b,a){ console.log(b*(c+a)); } guess(c,b,a); //output 21 guess(a,c,b); //output 25

25th Feb 2018, 7:59 PM
Abdul Basit
Abdul Basit - avatar
0 Answers