FAQ: Welcome to Codecademy! - Write some code!

#1

This community-built FAQ covers the “Write some code!” exercise from the lesson “Welcome to Codecademy!”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development
Code Foundations

Welcome to Codecademy!

FAQs on the exercise Write some code!

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

#2

Error with the code…without ANY modifications. WHY?

Oops! The test returned an error. Maybe you have a syntax error, or a typo. Hide error.

/home/ccuser/node_modules/mocha/lib/utils.js:634

    throw new Error("cannot resolve path (or pattern) '" + path + "'");

    ^

Error: cannot resolve path (or pattern) ‘test/test.js’

at Object.lookupFiles (/home/ccuser/node_modules/mocha/lib/utils.js:634:15)

at /home/ccuser/node_modules/mocha/bin/_mocha:327:30

at Array.forEach (native)

at Object.<anonymous> (/home/ccuser/node_modules/mocha/bin/_mocha:326:6)

at Module._compile (module.js:571:32)

at Object.Module._extensions..js (module.js:580:10)

at Module.load (module.js:488:32)

at tryModuleLoad (module.js:447:12)

at Function.Module._load (module.js:439:3)

at Module.runMain (module.js:605:10)

at run (bootstrap_node.js:427:7)

at startup (bootstrap_node.js:151:9)

at bootstrap_node.js:542:3
3 Likes
#3

we have to use command prompt or what?

1 Like
#5
print ("Hello Codecademy Friend");
2 Likes
#6

Is it possible to up the code introduced into this lesson into HTML?

drawName(‘Your Name Here’);

bounceBubbles();

I have a website in HTML and I would like to get some of the headings to react in the same way. I am just unclear as to how HTML and this code would work together.

2 Likes
#7

I am completely new to coding… what should I enter in the bounceBubbles()

4 Likes
#8

Good day. please i am kid of stuck in exercise two of coding. it won’t go further. please i need advice as i am totally new to coding

6 Likes
#9

i am extremely new to coding and i’m kinda stuck in exercise i need help instantly

1 Like
#10

You can always create a new thread explaining what you need help with!

1 Like
#11

Hi am new and i want to join codecademy

1 Like
#12

<!DOCTYPE html>
<html>

<head>
<script>
function myFunction() {
document.getElementById(“demo”).innerHTML = “Paragraph changed.”;
}
</script>
</head>
<body>

<h1>A Web Page</h1>
<p id=“demo”>A Paragraph</p>
<button type=“button” onclick=“myFunction()”>Try it</button>

</body>
</html>

1 Like
#13

what about what you will code in the page of js?

1 Like
#14

I am terribly sorry, what is your question again please…

1 Like
#15

Hello, I keep getting stuck on the second part of the lesson thing. Before I even go to change something, it runs the program by itself and says it has an error.
This is what it says:
Oops! The test returned an error. Maybe you have a syntax error, or a typo. Hide error.

/home/ccuser/node_modules/mocha/lib/utils.js:634

    throw new Error("cannot resolve path (or pattern) '" + path + "'");

    ^

Error: cannot resolve path (or pattern) ‘test/test.js’

at Object.lookupFiles (/home/ccuser/node_modules/mocha/lib/utils.js:634:15)

at /home/ccuser/node_modules/mocha/bin/_mocha:327:30

at Array.forEach (native)

at Object.<anonymous> (/home/ccuser/node_modules/mocha/bin/_mocha:326:6)

at Module._compile (module.js:571:32)

at Object.Module._extensions..js (module.js:580:10)

at Module.load (module.js:488:32)

at tryModuleLoad (module.js:447:12)

at Function.Module._load (module.js:439:3)

at Module.runMain (module.js:605:10)

at run (bootstrap_node.js:427:7)

at startup (bootstrap_node.js:151:9)

at bootstrap_node.js:542:3
2 Likes
#16

How come the letters in the previous lesson is colored while the letters in this one are gray?
The code look the exact same, are you hiding things from us?

2 Likes
#17

Continuing the discussion from FAQ: Welcome to Codecademy! - Write some code!:

This is the screen I get before I can even add my name.


Help!

2 Likes
#19

i have the same thing

1 Like
#20

Following up on this question, I am having the same issue

1 Like
#21

I had the same issue. if your on step 2 where the right side of your screen is blocked out hit F5 to refresh the page. I hope this helps

2 Likes
#22

hi guys can i see what you are up to:hugs: