JavaScript Function Types