# Need more exercises doing JavaScript in codepen.io

**URL:** <https://forum.freecodecamp.org/t/need-more-exercises-doing-javascript-in-codepen-io/65569>\
**Category:** General\
**Created:** [December 15, 2016, 12:12am UTC](https://forum.freecodecamp.org/t/need-more-exercises-doing-javascript-in-codepen-io/65569 "2016-12-15T00:12:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![MalcoLmAnderson](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MalcoLmAnderson](https://forum.freecodecamp.org/u/MalcoLmAnderson)\
**Post date:** [December 15, 2016, 12:12am UTC](https://forum.freecodecamp.org/t/need-more-exercises-doing-javascript-in-codepen-io/65569/1 "2016-12-15T00:12:35Z")

</div>

I went flying through Front End Development Certification right up until I hit the Intermediate Front End Development Projects and fell flat on my face.

My Problem? I couldn’t for the life of me, figure out how to hook up my “next quote” button to do _anything._ I kept getting “Unrecognized element $”

Because we never did any work in [codepen.io](http://codepen.io) using the JS tab, I had no idea how to wire things up, how to save any kind of state (or maybe know that I should not be trying to save state on a web page.)

I probably spent 6 hours today just trying to figure out how to do some kind of hello world, and I’m not expecting it to get any easier.

When I finally did find someone who could help he basically said, “Yeah, after the JSON APIs and Ajax section, they pretty much throw you into the deep end with no help.”

If anyone knows of some kind of tutorial for using the JS side of [codepen.io](http://codepen.io), I would jump on it today and use it as a launching pad.

---

<div class="post-metadata">

**Author:** ![JavaTheNutt](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/javathenutt/32/163777_2.png) [@JavaTheNutt](https://forum.freecodecamp.org/u/JavaTheNutt)\
**Post date:** [December 15, 2016, 2:14pm UTC](https://forum.freecodecamp.org/t/need-more-exercises-doing-javascript-in-codepen-io/65569/2 "2016-12-15T14:14:58Z")

</div>

You don’t actually HAVE to use CodePen. In fact, I find that CodePen messes people up, because it abstracts away all of the details of how the webpage actually works. It’s also much more difficult to debug your code, particularly CSS, because everything is wrapped in an iView.

If you do decide to use CodePen, the only thing that is different to the challenges is that you have to make sure to add links to external resources. ( I’m assuming the “Unrecognized element” error was caused by jQuery not being properly added).

In my personal opinion, the best way to understand what’s going on under the hood with CodePen is to build a simple website yourself on your own machine. To do this, follow the following steps:

1. Create a folder on your computer
2. Create three files in that folder. A HTML file, a CSS file and a JS file
3. Copy the template below into your HTML file

``` Template 

```auto

So between the opening &lt;body&gt; tag and the first &lt;script&gt; tag is what you can see on CodePen. So really, there's nothing special going on with CodePen. It's just abstracting away the details.

__EDIT :__
I've just realized, I never mentioned how to view the page. You just right click and open in your browser of choice. 

I also forgot to mention text editors. There are loads of free ones for beginners. Such as [Notepad++](https://notepad-plus-plus.org/download/v7.2.2.html), [Sublime Text](https://www.sublimetext.com/3) (Not free, but has an infinite free trial, so you can try it out), [Atom](https://atom.io/) or [Brackets](http://brackets.io/). I would probably recommend Brackets, its great for beginners and has LiveReload out of the box, so you don't need to keep refreshing your page when you make a change. 

Hope this helps!
```

---

<div class="post-metadata">

**Author:** ![ellereeeee](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ellereeeee/32/29202_2.png) [@ellereeeee](https://forum.freecodecamp.org/u/ellereeeee)\
**Post date:** [December 15, 2016, 2:55pm UTC](https://forum.freecodecamp.org/t/need-more-exercises-doing-javascript-in-codepen-io/65569/3 "2016-12-15T14:55:31Z")

</div>

I had a similar experience to you; the FCC JSON APIs and Ajax section really leave something to be desired.

I spent a week on this [AJAX Basics Course](https://teamtreehouse.com/library/ajax-basics) at Teamtreehouse and I think it filled in the gap left by FCC. I highly recommend it.

Make sure you finish the course during the free trial; otherwise they’ll bill you as a monthly subscriber. It’s totally doable in a week by the way, even with a full-time job.

---

<div class="post-metadata">

**Author:** ![AdventureBear](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adventurebear/32/74786_2.png) [@AdventureBear](https://forum.freecodecamp.org/u/AdventureBear)\
**Post date:** [December 15, 2016, 2:58pm UTC](https://forum.freecodecamp.org/t/need-more-exercises-doing-javascript-in-codepen-io/65569/4 "2016-12-15T14:58:22Z")

</div>

Codepen is actually easier because it leaves out all the script tags. There is no wiring up. it sounds like you’re having some trouble with jquery based on the error. You may need to add jquery in your javascript settings box…maybe that’s what you’re missing in terms of wiring it up.

Basically you use the settings option to add the things that would otherwise be added by using “script” tags.

I wrote a tutorial that uses codepen, not sure if it will help you with this specific issue, but it sure won’t hurt. Give this a try if it looks interesting:

Click on “settings” and read the instructions/tutorial in the description, then try to replicate on your own.

Part 2 is where I add jquery, there is an explanation in the description area.

> **[7 Day Zipline Challenge - a Collection by Suzanne Atkinson on CodePen](https://codepen.io/collection/ANKxWY/)**
>
> 7 bite sized steps to complete a functioning digital clock with a changing color background. Each step should take you 10-30 minutes to complete. Do one each day to keep moving forward in your skills, or do them all in a row!

---

<div class="post-metadata">

**Author:** ![MalcoLmAnderson](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MalcoLmAnderson](https://forum.freecodecamp.org/u/MalcoLmAnderson)\
**Post date:** [December 15, 2016, 6:43pm UTC](https://forum.freecodecamp.org/t/need-more-exercises-doing-javascript-in-codepen-io/65569/5 "2016-12-15T18:43:14Z")

</div>

Thanks  
This helps a small ton.

I think your example would make a pretty nice 2 - 5 part lesson, just so people can see how and when things get put together.

---

<div class="post-metadata">

**Author:** ![MalcoLmAnderson](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MalcoLmAnderson](https://forum.freecodecamp.org/u/MalcoLmAnderson)\
**Post date:** [December 15, 2016, 6:44pm UTC](https://forum.freecodecamp.org/t/need-more-exercises-doing-javascript-in-codepen-io/65569/6 "2016-12-15T18:44:57Z")

</div>

I will take a look at that course, right now I’m hooked up with the web developer bootcamp on udemy (found a coupon that takes it from $200 down to $10 but I will keep that one in mind, and will watch out for the subscription time out.

Thanks

---

<div class="post-metadata">

**Author:** ![JavaTheNutt](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/javathenutt/32/163777_2.png) [@JavaTheNutt](https://forum.freecodecamp.org/u/JavaTheNutt)\
**Post date:** [December 15, 2016, 6:48pm UTC](https://forum.freecodecamp.org/t/need-more-exercises-doing-javascript-in-codepen-io/65569/7 "2016-12-15T18:48:59Z")

</div>

If you wan’t a good beginner HTML tutorial, you should check outThe Net Ninja’s [Basic HTML tutorial](https://www.youtube.com/watch?v=Y1BlT4_c_SU&index=1&list=PL4cUxeGkcC9ibZ2TSBaGGNrgh4ZgYE6Cc). Its a really good place to start.

---

<div class="post-metadata">

**Author:** ![MalcoLmAnderson](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MalcoLmAnderson](https://forum.freecodecamp.org/u/MalcoLmAnderson)\
**Post date:** [December 15, 2016, 6:51pm UTC](https://forum.freecodecamp.org/t/need-more-exercises-doing-javascript-in-codepen-io/65569/8 "2016-12-15T18:51:27Z")

</div>

What I’m really looking for is a basic java script ajax tutorial  
get state from somewhere,  
click a button to change state, or refresh an api call  
click a different button to do something else

That type of thing.

---

<div class="post-metadata">

**Author:** ![JavaTheNutt](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/javathenutt/32/163777_2.png) [@JavaTheNutt](https://forum.freecodecamp.org/u/JavaTheNutt)\
**Post date:** [December 15, 2016, 6:52pm UTC](https://forum.freecodecamp.org/t/need-more-exercises-doing-javascript-in-codepen-io/65569/9 "2016-12-15T18:52:58Z")

</div>

They also have a [JS for beginners tutorial](https://www.youtube.com/watch?v=qoSksQ4s_hg&list=PL4cUxeGkcC9i9Ae2D9Ee1RvylH38dKuET). Tutorials for pretty much any web technology you want!

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [January 16, 2021, 6:10am UTC](https://forum.freecodecamp.org/t/need-more-exercises-doing-javascript-in-codepen-io/65569/10 "2021-01-16T06:10:44Z")

</div>

Closed on January 16, 2021, 6:10am UTC


