I canā€™t able to find answer. Somebody help me please??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I canā€™t able to find answer. Somebody help me please???

<div style=ā€œwidth:200pxā€></doc> <script> $(function (){ $(ā€œdivā€).css(ā€œpaddingā€,ā€5pxā€); alert($(ā€œdivā€).innerWidth()); }); </script>

14th Oct 2018, 4:50 AM
Vaishali Singh
Vaishali Singh - avatar
4 Answers
+ 1
Not sure what answer you were expecting, but this returns 344 (portrait) and 656 (landscape) for me in the Code Playground. https://code.sololearn.com/WE6jxrBnYeFS/?ref=app
15th Oct 2018, 7:43 PM
Janningā­
Janningā­ - avatar
+ 3
okkk thank you so much
15th Oct 2018, 11:01 PM
Vaishali Singh
Vaishali Singh - avatar
+ 2
sorry that was </div>
14th Oct 2018, 3:09 PM
Vaishali Singh
Vaishali Singh - avatar
0
what is </doc> ?
14th Oct 2018, 9:23 AM
Janningā­
Janningā­ - avatar