Answer to the questions
1. What are programming elements?
Components of a program - the building blocks from which a program is created.
2. What is the difference between an expression and a statement?
An expression is a simple element that has a vulue like a number for example.
Expressions can have operators like 5 + 3 or 5 > 3
It is like a phrase of a sentence.
A statement is using expressions and operators for to give a program the instruction
to do any desired action.
3. Tell in own words what a statement does
Like we did the flow chart last lesson. There were many actions = statements.
Like process statements that just go on step by step
like iteration statement that is like a loop till a certain point is reached.
There also can be conditional statements by using the words if...else
or Input/Output statements like for example pressing a button. document.write("Hello
World"); is a simple statement.
4. Give an example of a complete statement using only operators, variables
and values
var evi="my name is Evi and I live in Munich " + "and my street number is" +
(100 + 44)+ "
"; document.write(evi);