Array and Function
Array and Function
● Function Declaration
● Function Expression
Function Declaration
Other references
Arrow Function
● isFinite(), The global isFinite() function determines whether the passed value is a
finite number. If needed, the parameter is first converted to a number.
● isNaN(), The isNaN() function determines whether a value is Nan or not.
● parseFloat(), The parseFloat(), function parses a string argument and returns a
floating point number.
● parseInt(), The parseInt() function parses a string argument and returns an
integer of the specified radix (the base in mathematical numeral systems).
● etc.
Exercise - Example
● Create a function that can create a triangle pattern according to the height we provide like the
following :
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
01
02 03
04 05 06
07 08 09 10