Files
Randell Dawson 1494a50123 fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
2019-07-24 13:29:27 +05:30

537 B

title
title
Use export to Reuse a Code Block

Use export to Reuse a Code Block


Problem Explanation

We learned how to import stuff from another file. But there's a catch. You can only import files that are exported from that other file.

Your task here is to export foo and bar.


Hints

Hint 1

Just add export in front of them!


Solutions

Solution 1 (Click to Show/Hide)
"use strict";
export const foo = "bar";
export const bar = "foo";