0

Why j is > 10

var i =10; var j =0; while (i > 0){ j++; i=i/2; };

27th Jan 2019, 11:47 AM
Sara Hadj-Ali
Sara Hadj-Ali - avatar
2 Respuestas
+ 1
Thank you ,i got it !
27th Jan 2019, 12:20 PM
Sara Hadj-Ali
Sara Hadj-Ali - avatar
0
var data =41; var o ={data : 42}; o.print =function(){ console.log(this.data); var print2 = function(){ console.log(this.data); } print2() ; }; var data =43 ; o.print() May you please look at the code below ,i didn't really understand the" this " notation and why the result we obtained is 42 43 ? Thank you souch 🙏🙏🙏🙏
27th Jan 2019, 1:06 PM
Sara Hadj-Ali
Sara Hadj-Ali - avatar