JavaScript Tutorial 12 - Function Expressions (anonymous functions)

preview_player
Показать описание
In this JavaScript Tutorial I go over Function Expressions (also called Anonymous functions). Function expressions are basically another way of declaring a function. You just set the function equal to a variable. for example:-

var myHello = function () {alert("Hello");};

The above is an example of function expression, where the function just alerts out Hello. You call the function by using the variable name so the following statement would run the function:-

myHello();
Рекомендации по теме
Комментарии
Автор

can you please do a video on inline function expressions

archiboldpatsanza