Hello and welcome.
In this video I'm going to illustrate with some basic examples what output means in programming.
What is an output an output is basically anything that comes out of a computer after it has been processed.
So a typical example would be this slide you're looking at on the screen.
The monitor is an example of an output device that is used to output text on the screen.
To illustrate I want you to open up your Web browser and typing in the address bar about call on blank.
And that will give you the blank page.
Once you open up the blank page just right click anywhere and click on inspect and click on console
and this console area here is where we are going to do some experimentation with output.
So I'm going to use some built in commands of functions that are built in to JavaScript functions are
bunch of code or computer statements that do specific things.
So the functions are already being built in and they're baked into the javascript programming language.
We just have to call them to use them.
So the first thing I wanted to.
I want to display an output here inside this area here.
I want to write a message.
So to do that I'm going to use a command so so known as a function code the document
dot right.
And inside the parentheses is where you specify the message that you want to be displayed on the screen.
So I want the message to be big.
So I'm going to use on page one element within which is and hasty AML head in tag.
So I'm going to.
Hello
world.
Exclamation mark.
And close the hate one tag.
All right.
And that end that close the parentheses and pull the semicolon.
So this here is a complete statement in javascript.
So what I'm saying here this right here is a method in all a function that basically is going to write
this message here to the current document.
This here is a current document.
So he's going to print out this message Hello World.
The reason I'm calling in closing quotes is because they are texts so you need to enclose text in quotes
so they referred to as a string.
So if I press enter now it will display in this area.
Hello world.
So let me do that.
So this here is an output it's regarded as an output.
So because a computer has taken used this method here this command and printed this text on the screen.
So this is an output from this action the computer all the program took.
Let's try another command.
This is another command also it's called an alert is used to display pop up messages on the screen.
So let me do a simple maths.
How do seven plus eight.
You always have to end the semicolon code that indicates that this is a complete statement on this statement
and to hear what there is to this alert is he said built in function in javascript is used to display
pop up messages.
So if I press enter it will give me an output displayed in a pop up message to give me the result of
this too.
So I press enter.
You can see he is giving me the output of 15.
So he's done this is done the calculation and generated an output which is 15.
So this here is known as an alert pop up box so that again is another example of an output.
I can do one more I can display a message here in the console.
This area here is a console so I can do console lock.
This is another method or another function console log and inside the parentheses I can display a message
I can say
let's just do a simple message I just say yo OK I do surrounded by quotes because it's a text.
OK.
You always have to enclose text in either single quotes or double code but you can mix the quotes.
You can't have a single code here and then a double code here the quotes must match.
So if I press enter you print out you on the console you can see here it's printed out you on the console
to.
This is an output.
This here is an output.
So thus some basic examples of outputs and output is basically the outcome of the results that you've
asked the computer to do.
So you tell the computer to do something.
He's done it and then it gives you back the results.
So it is a result that is known as the output.
I hope this video has helped to make you understand what a output or an output is in computer programming.
Thank you for watching.
Bye for now.