Code week
Данный пост посвящен "European Code Week"
</script><title>Variables!!!</title>
<script type="text/javascript">
var one = 25;
var two = 8;
var add = one + two;
var minus = one - two;
var multiply = one * two;
var divide = one/two;
document.write("First No: = " + one + "<br />Second No: = " + two + " <br />");
document.write(one + " + " + two + " = " + add + "<br/>");
document.write(one + " - " + two + " = " + minus + "<br/>");
document.write(one + " * " + two + " = " + multiply + "<br/>");
document.write(one + " / " + two + " = " + divide + "<br/>");
</script>
My First JavaScript code!!!
Variables!!!
First No: = 25
Second No: = 8
25 + 8 = 33
25 - 8 = 17
25 * 8 = 200
25 / 8 = 3.125
Arrays!!!
students array
Семен
Эрик
Эрнест
Юлия
Настюха
The number of items in students array is 5
The SORTED students array
Настюха
Семен
Эрик
Эрнест
Юлия
The REVERSED students array
Юлия
Эрнест
Эрик
Семен
Настюха
THE students array after REMOVING the LAST item
Юлия
Эрнест
Эрик
Семен
THE students array after PUSH
Юлия
Эрнест
Эрик
Семен
New Stuff
Using while loops
Fibonacci series less than 40
0
1
1
2
3
5
8
13
21
34
IF Statments!!!
You are NOT an adult
If...Else Statments!!!
</script><title>Variables!!!</title>
<script type="text/javascript">
var one = 25;
var two = 8;
var add = one + two;
var minus = one - two;
var multiply = one * two;
var divide = one/two;
document.write("First No: = " + one + "<br />Second No: = " + two + " <br />");
document.write(one + " + " + two + " = " + add + "<br/>");
document.write(one + " - " + two + " = " + minus + "<br/>");
document.write(one + " * " + two + " = " + multiply + "<br/>");
document.write(one + " / " + two + " = " + divide + "<br/>");
</script>
Second No: = 8
25 + 8 = 33
25 - 8 = 17
25 * 8 = 200
25 / 8 = 3.125
Семен
Эрик
Эрнест
Юлия
Настюха
The number of items in students array is 5
The SORTED students array
Настюха
Семен
Эрик
Эрнест
Юлия
The REVERSED students array
Юлия
Эрнест
Эрик
Семен
Настюха
THE students array after REMOVING the LAST item
Юлия
Эрнест
Эрик
Семен
THE students array after PUSH
Юлия
Эрнест
Эрик
Семен
New Stuff
Using while loops
Fibonacci series less than 40
0
1
1
2
3
5
8
13
21
34
Комментарии
Отправить комментарий