Started from the Top explainer


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 'circle' string.



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));