I have the same code as you do but the app doesn’t accept it. I posted a screenshot of my code below
Take a look at the
.append('circle'). Notice that there is an
.attr() attached to the
'circle' string. When you chain calls,
.append().attr().attr().attr(), make sure that each one is attached to the closing parenthesis of the previous one. To do that, highlight the entire
.append('circle') when adding the next
.attr(). If only the
'circle' is highlighted, it will try to add the
.attr() to the
This was very helpful. Thank you!
Write this it will work surely 100%–> var balloon=svg.append(‘circle’).attr(‘fill’, ‘red’).attr(‘r’, 35’).attr(‘cy’, 35).attr(pickRandom(position));
I have tried this several times and am getting nowhere
Hey there, I’ve moved your post to this thread.
On the keyboard, there should be a key for position. Use that as an argument, rather than writing ‘position’ as a string.
Hope this helps. Let me know if you have any questions.