0

WHAT DID I DO WRONG???

window .onload = function () { let btn = document .getElementById("mybutton"); btn .onclick = hello; }; body { background-color:#c3c3c3 } h1 { color:#4c6ebb } <button id="jump" <canvas id="canvas" width="600" height="400"></canvas> <br><br> <button> id="jump">jump</button> canvas { width:100%; background-color: black; } var canvas = document.getElementById("canvas"); var context = canvas.getContext("2d"); var x = 300; var y = 350; context.arc(x, y, 50, 0, 2 * Math.PI); context.fillStyle="red"; context.fill(); btn.onclick = function() { count += 1; y -= 25; context.clearRect(0, 0, 600, 400); context.beginPath(); context.arc(x, y, 25, 0, 2 * Math.PI); context.fillStyle="red"; context.fill(); context.font = '25px Arial'; context.fillStyle = 'white'; context.fillText("Count: " + count, 20, 30); window.requestAnimationFrame(draw); }

20th Apr 2022, 5:58 AM
Sabrina Oxford
Sabrina Oxford - avatar
10 odpowiedzi
+ 4
Please link your complete code. Put your code in a script on sololearn playground and LINK IT. Go to Code section, click +, select web, insert the code in the corresponding tabs, save. Come to the thread, click +, sort for My Code Bits, select your code
20th Apr 2022, 7:03 AM
Lisa
Lisa - avatar
+ 2
In the app it's called Code. It's a tab in the bottom
20th Apr 2022, 7:41 AM
Lisa
Lisa - avatar
+ 1
Ok.. I will learn this and do it🤗🥰🤞👍
20th Apr 2022, 7:34 AM
Sabrina Oxford
Sabrina Oxford - avatar
+ 1
I cannot find the solo learn playground is it actually called playground or is there a different word?
20th Apr 2022, 7:41 AM
Sabrina Oxford
Sabrina Oxford - avatar
+ 1
If you're using the Sololearn app: tap the {} to the left of Discuss. Then Press the button that says + New Code. If you can't find it click this. https://code.sololearn.com/#
21st Apr 2022, 2:27 AM
Chris Coder
Chris Coder - avatar
+ 1
Sweet!! God Bless 🥰🤗🥰
22nd Apr 2022, 10:23 AM
Sabrina Oxford
Sabrina Oxford - avatar
+ 1
I just started over and redid it ... Not sure what was wrong but it does appear to be fixed 🤷🤦😂🥰❣️ 🤔 What I believe happened is that I didn't save something so it was missing an entire section of coding now that I'm re going back in and doing it over I'm making sure that each thing is saved before advancing.... Simple little errors but I'm trucking along and did get my first game development with JavaScript completed and now doing HTML 🤔 which I probably should have done first 😳😂🤷 however it is great to be learning and thank you all for communicating and helping along when I have questions 🥰🤗🥰
26th Apr 2022, 10:38 PM
Sabrina Oxford
Sabrina Oxford - avatar
0
Sabrina Oxford Fantastic! I'm happy you figured it out. But next time share your code bit!. Tap the (+) beside send arrow.
27th Apr 2022, 12:01 AM
Chris Coder
Chris Coder - avatar
0
oops! this is the wrong one no I have not figured that out I want to retake the course and start over from the beginning. I'm taking the HTML one now so that give me a better understanding when I get to the JavaScript and then I will take the game development course over. but I had figured out was my air in HTML LOL. whatever I will put that here for your: what I did wrong was use ( ) vs. <> with the ul and had used the <i- -> meant for comments and not for just the <i> used to italicize the word. 👍 and I figured it out🤗🥰 <h2><i>EXPERIENCE</i></h2> <p><ul><strong>CSS</strong></ul> <p>Coding is new and exciting to learn</p> <ul><strong>GAME DEVELOPMENT</strong></ul> <p>First Course completed. I am pleased to have started my coding journey</p> <ul><strong>HTML</strong></ul> <p>html is like making a cake from scratch... you best know what your doing or it won't turn out good</p> <ul><strong>Java Scri
27th Apr 2022, 2:13 AM
Sabrina Oxford
Sabrina Oxford - avatar
0
Sabrina Oxford here just use this and put our code in here and save and make it public. https://code.sololearn.com/WkUi0D0JLkzj/?ref=app
27th Apr 2022, 5:09 AM
Chris Coder
Chris Coder - avatar