# Exporting variables

**URL:** <https://forum.freecodecamp.org/t/exporting-variables/219125>\
**Category:** General\
**Created:** [August 18, 2018, 8:49pm UTC](https://forum.freecodecamp.org/t/exporting-variables/219125 "2018-08-18T20:49:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![firasmalik](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/firasmalik/32/97552_2.png) [@firasmalik](https://forum.freecodecamp.org/u/firasmalik)\
**Post date:** [August 18, 2018, 8:49pm UTC](https://forum.freecodecamp.org/t/exporting-variables/219125/1 "2018-08-18T20:49:20Z")

</div>

“use strict”;  
const foo = “bar”;  
const bar = “foo”;  
export const foo = “bar”;  
export const bar = “foo”;

\*\*\*\*\*\*\*\*\*\*\*\*results (not showing challenge successfull when i try to export variables)  
// running test  
foo is exported.  
bar is exported.  
// tests completed

---

<div class="post-metadata">

**Author:** ![kevinSmith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevinsmith/32/72934_2.png) [@kevinSmith](https://forum.freecodecamp.org/u/kevinSmith)\
**Post date:** [August 18, 2018, 9:14pm UTC](https://forum.freecodecamp.org/t/exporting-variables/219125/2 "2018-08-18T21:14:02Z")

</div>

Please, we are not psychic. What is the question?

If this is a FCC challenge, there is an “Ask for Help” button that will provide links to the challenge automatically.

---

<div class="post-metadata">

**Author:** ![AndrewFan0408](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/andrewfan0408/32/96959_2.png) [@AndrewFan0408](https://forum.freecodecamp.org/u/AndrewFan0408)\
**Post date:** [August 18, 2018, 9:16pm UTC](https://forum.freecodecamp.org/t/exporting-variables/219125/3 "2018-08-18T21:16:42Z")

</div>

I’m not sure what your problem is but try to delete the word const in `export const foo = "bar";` and also `export const bar = "foo";`

---

<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:17pm UTC](https://forum.freecodecamp.org/t/exporting-variables/219125/4 "2021-01-17T20:17:23Z")

</div>

Closed on January 17, 2021, 8:17pm UTC


