JavaScript Basics Flashcards
What is JavaScript?
It’s a programming language that is used in the most versatile way: front-end and back-end.
What are the initials for JavaScript?
JS
According to MDN, what is JavaScript?
JavaScript is a programming language that allows you to implement complex features on web pages
Where does JavaScript fit in with front end web development?
Cake analogy
It’s the third layer of the cake.

What does JavaScript do that makes it different
from HTML and CSS?
JS is a scripting language that enables you to create
dynamically updating content,
control multimedia,
animate images,
and pretty much everything else.
What are some things you can create using JavaScript?
- Browser Popups
- Scrolling Effects
- Animation
- Immersive Experiences
- Games

What are some practical applications of JavaScript?
- Maps
- Gmail
- Google Tasks
- Emails
- Documents
- Calculations
What is the JavaScript console?
Within developer tools, you can enter and see how your JavaScript program performs. It’s like a JS editor, web based.
What is the shortcut to open JS console on Windows?
Use javascript console
CTRL SHIFT J
How do you clear the JS console?
Press the grey circle with the diagonal line through it.

Can you preview JavaScript with the console?
Yes.
Can you debug JavaScript with the console?
Yes
What’s the JavaScript console shortcut for mac computers?
Press Command + Option + J
What is syntax?
It’s a language.
It’s a programming language’s
commands, special words, and punctuation.
How do you run a previous command within the JS console?
Previous command up arrow by pressing up key

What does alert do?
alert opens a dialog
What happens if you refresh the page?
The JS console clears what’s printed on the page.
Can you clear the console by clicking?
Yes
Right click, choose clear console
What happens if you enter alert(); in the JS console?
It creates a popup with that’s missing content.
How do JavaScript statements typically end?
;
with a semi-colon
alert(“Hello, World!”);
What does console.log do?
Logs or prints the message in the JS console
What happens if you enter “Hello World” into the console.log?

It prints Hello World inside of the JS console, not on the page.
What does each word within document.write mean?
document refers to current web page
write writes text on web page
If you enter the following code snippet,
what does it do?

It prints a temporary headline onto the webpage.















































































