Anna University Plus
var functionName = function() {} vs function functionName() {} - Printable Version

+- Anna University Plus (https://annauniversityplus.com)
+-- Forum: Javascript (https://annauniversityplus.com/forumdisplay.php?fid=1)
+--- Forum: Ask Javascript Questions (https://annauniversityplus.com/forumdisplay.php?fid=3)
+--- Thread: var functionName = function() {} vs function functionName() {} (/showthread.php?tid=13)



var functionName = function() {} vs function functionName() {} - Guest - 11-18-2022

var functionName = function() {} vs function functionName() {}


Code:
var functionOne = function() {
    // Some code
};

Code:
function functionTwo() {
    // Some code
}