+ 6

where to write my drawboxes() to create a flag

I ve placed the <script> tag inside the <body> tag in html. And inside the <script> tag I wrote my different drawboxes().... NO OUTPUT !!! Does I need to write sth in Js or css???

2nd Oct 2020, 2:57 PM
K1auDIa KaDaM0UR0
K1auDIa KaDaM0UR0 - avatar
12 Respuestas
+ 7
I thank ya very much for ya spended time to explain me 🙏🏼🙏🏼
2nd Oct 2020, 4:10 PM
K1auDIa KaDaM0UR0
K1auDIa KaDaM0UR0 - avatar
+ 7
thank uuuu very much 🙏🏼
2nd Oct 2020, 5:08 PM
K1auDIa KaDaM0UR0
K1auDIa KaDaM0UR0 - avatar
+ 5
I never ve created an Html code with Js inside 😬.... I m a beginner but I m here to learn !! Do ya know the APP “Grasshopper” ??
2nd Oct 2020, 3:55 PM
K1auDIa KaDaM0UR0
K1auDIa KaDaM0UR0 - avatar
+ 5
😂 I ve learnt the whole js tutorial but too close after having learnt python... so I need to revidide js from the beginning coz I have lost my time by learning js so close after I had finished Py .... 🤷🏻‍♀️
2nd Oct 2020, 4:09 PM
K1auDIa KaDaM0UR0
K1auDIa KaDaM0UR0 - avatar
+ 4
yep
2nd Oct 2020, 3:03 PM
K1auDIa KaDaM0UR0
K1auDIa KaDaM0UR0 - avatar
+ 4
<html> <head> <title>Flag from Luxembourg </title> </head> <body> drawboxes(‘rrr www bbb’) newline() </body> </html>
2nd Oct 2020, 3:06 PM
K1auDIa KaDaM0UR0
K1auDIa KaDaM0UR0 - avatar
+ 4
I have made the error not practisising when learning that’s why I m a little bit lost now !!
2nd Oct 2020, 3:07 PM
K1auDIa KaDaM0UR0
K1auDIa KaDaM0UR0 - avatar
+ 3
normally in html to draw you need a canvas. could you post your code.
2nd Oct 2020, 3:02 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 2
where did you learn that? drawboxes() is not a built-in function. you would have to include the js source where it is defined.
2nd Oct 2020, 3:46 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 2
oh, I see. well, it's not the same. they built a lot of things to make it easier to code for beginners. you can not use those functions here or in other environments. here in sololearn you have to use pure javascript or include some source that provides certain functions. give javascript course a look to understand better.
2nd Oct 2020, 4:04 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 2
here is the same result with js and html https://code.sololearn.com/Wu61ON1QBfx4/?ref=app
2nd Oct 2020, 4:41 PM
Bahhaⵣ
Bahhaⵣ - avatar