Содержание
- 2. Agenda Functions in JS Input and Output JS Code Processing Declaration and Expression [1] [2] [3]
- 3. Functions in JS
- 4. Basic Information In mathematics: In classical programming [3] Function is a relation between a set of
- 5. Example var i, base, power, result; base = 2; power = 2; result = 1; for(i
- 6. Declaration of function function is a special keyword for creation of function in JavaScript. function name
- 7. Example var i, base, power, result; base = 2; power = 2; result = 1; for(i
- 8. Example function pow () { result = 1; for (i = 0; i result *= base;
- 9. Function call Call - operation for execution of function. ( ) – operator for this action.
- 10. Example var i, base, power, result; base = 2; power = 2; pow(); console.log(result); base =
- 11. Input and Output
- 12. Input and Output function name (a, b) { return a + b; } [1] * you
- 13. Example function pow () { result = 1; for (i = 0, I result *= base;
- 14. Example function pow (base, power) { var result = 1; for (i = 0, I result
- 15. Example var i, out; out = pow(2, 2); console.log(out); out = pow(3, 4); console.log(out); function pow
- 16. JS Code Processing
- 17. Code processing var a = 10; test(); function test () { a = 30; var b
- 18. Code processing var a = 10; test(); function test () { a = 30; var b
- 19. Code processing var a = 10; test(); function test () { a = 30; var b
- 20. Code processing var a = 10; test(); function test () { a = 30; var b
- 21. Code processing var a = 10; test(); function test () { a = 30; var b
- 22. Declaration and Expression
- 23. Declaration and Expression function name () { body; } [1] var name = function () {
- 24. Additional Facts About Functions Functions in JavaScript are Objects. As a result, functions are accessible by
- 26. Скачать презентацию