Categories


Archives


Recent Posts


Categories


Using Named Functions as Arguments in Javascript

astorm

Frustrated by Magento? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it.

Updated for Magento 2! No Frills Magento Layout is the only Magento front end book you'll ever need. Get your copy today!

I’ve been doing more backend NodeJS programming recently and I was pleasantly surprised to discover something new about a programming language I’ve been using for for over 20 years. Although, to be fair, the callback syntax I was asking about

callSomeFunction(function heyLookANameForMyFunction(){
});

wasn’t valid in every browser for much of those 20 years. Also, I wasn’t ready for how pleasant it would be writing javascript and not having to worry about every browser invented since time immemorial. Something something old dog, tricks, etc.

Copyright © Alana Storm 1975 – 2023 All Rights Reserved

Originally Posted: 14th April 2019

email hidden; JavaScript is required