FAQ: Languages for Web Development - What is JavaScript?

This community-built FAQ covers the “What is JavaScript?” exercise from the lesson “Languages for Web Development”.

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

Code Foundations

FAQs on the exercise What is JavaScript?

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!

Why doesn’t the drawtext command allow you to input other languages? If you wanted to do that, how would you? I input some Korean text and the output was some English letters and Arabic numerals, none of which even corresponded with the English keys I pressed to type the Korean words.

Did you ever get a response for this?

I have questions about where the information is pulled from in the first place?

I believe its from the alphabet.js library. It seems to me that its using ASCII ( American Standard Code for Information Interchange) to encode characters instead of UTF-8.

Refer to these posts to learn more.
https://www.w3schools.com/charsets/ref_html_ascii.asp
https://www.codecademy.com/forum_questions/530f15827c82cae16d00434d

2 Likes

What is the alphabet.js library in this? im just curious as to what its doing

if i want to change the color of a text every time that the cursor cross it. It is a css thing or a Javascript thing?

To a random color, you would use js. But if it’s a set color you could use either.

2 Likes

Maybe my question is kinda naïf but if Javascript is a library .js is just the call to it and you must put an attribute before. But drawtext has already font and colour.

Can the first letter of each word in these be capped, or must they be as they are shown in each lesson?

  1. When a user puts the mouse near an HTML element, the onmouseover event is fired.

  2. **drawText** is a function that is being run on line 2. Change the text that says 'hello world' to '**JavaScript**' to pass a different value into this function.