# Using js in CodePen

**URL:** <https://forum.freecodecamp.org/t/using-js-in-codepen/171285>\
**Category:** General\
**Created:** [January 28, 2018, 12:14am UTC](https://forum.freecodecamp.org/t/using-js-in-codepen/171285 "2018-01-28T00:14:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DVWood](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@DVWood](https://forum.freecodecamp.org/u/DVWood)\
**Post date:** [January 28, 2018, 12:14am UTC](https://forum.freecodecamp.org/t/using-js-in-codepen/171285/1 "2018-01-28T00:14:37Z")

</div>

Hey everyone! I need a little assistance with something probably very simple. I am trying to mess around with some of the exercises outside of the lessons and I want to test different effects of javascript in codepen. I managed to successfully get a textbox to pop up fine, but now I’m trying to use the console feature but none of my functions show up there, even when I copy and paste and I know the code is correct. I save, click “run” and get nothing. Does anyone know why?

This is what I’m trying to run:

```auto
var myName;
myName = "Mike";
console.log("My name is " + myName);

```

---

<div class="post-metadata">

**Author:** ![r1chard5mith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/r1chard5mith/32/160542_2.png) [@r1chard5mith](https://forum.freecodecamp.org/u/r1chard5mith)\
**Post date:** [January 28, 2018, 1:18am UTC](https://forum.freecodecamp.org/t/using-js-in-codepen/171285/2 "2018-01-28T01:18:08Z")

</div>

Which console? The one built into codepen? or the “real” one in the browser? Try the real one if you haven’t already(find ‘developer tools’ in the menus)

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:28pm UTC](https://forum.freecodecamp.org/t/using-js-in-codepen/171285/3 "2021-01-17T20:28:31Z")

</div>


