Loading
Current section: 1. Expressions And Output 7 exercises
lesson

Intro to Expressions And Output

Loading lesson

Transcript

00:00 Okay. Exercise one, expressions and output. One of the really important parts of being a software developer is to be able to get some output from the program that you're writing, and everything we do in software involves an expression. And so both of these things are really critical concepts to programming, and so we're introducing it to you first. Now it's hard to introduce one concept without introducing another, so there will be a couple of things in here that you're you may not be familiar with at all.

00:30 We will get to them, I promise. We're going to use a special API called console dot log. You're gonna pass it an argument, that is a string, and then you're going to use node or, the epic workshop, interface to view what those console outputs look like. We're also gonna be talking about expressions, two particular types, so string expressions and number expressions. There are a lot of different other types of expressions that we'll get into later on.

01:03 So here we've got what's called concatenation, and we've got addition, you might be familiar with, and division, for our math expressions. And you can log both types of, these expressions to the console. So your job in this exercise is to learn all that you can about expressions and the, console log. And and to be totally clear, the expression right here, this actually doesn't do anything in a program. You take that expression.

01:34 You combine it with what's called a statement. So this line right here, the whole line together is a statement. This piece right here, that's the expression part. So, statements are typically made up of a combination of some function call or some special, syntax for keywords and things with expressions inside of them. And so we're gonna be focusing on the expressions.

01:58 We'll learn a little bit more about what this console log stuff, is a little bit later. But you do need to understand how to output stuff from your program so that you can verify that it's doing what it's supposed to be doing. So with that, I'm gonna let you jump right into the first step of this exercise. Have a good time with it.