Functions Syntax


#1

Hello everyone. I was wondering if

function showAlert(){
alert("Hello World!");
};

showAlert();

is the same as

var showAlert = function(){
alert("Hello World!");
};

showAlert();

Thank you.


#2

HI, Yes it's the same.