JavaScript Functions: Default argument values and the ‘arguments’ object!

preview_player
Показать описание
Introducing our new series: #TechTips​! In these videos, our in-house developer team at Hackages share with you the tech tips you need to become a better developer!

This video gives you an introduction to javascript function arguments. When you’re not using typescript (like you should be ;))
Javascript functions can be called with as many arguments as you want. In this video I’ll go over the different ways arguments can be used and accessed, as well as allowing for providing an array of arguments of indefinite length.

Check out our other series 'Tech Tips' videos:

➡️At Hackages, our aim is to connect with our tech community and build educational training sessions to develop your skills as a software engineer. We have an in-house developer team available for consultancy to get your company the IT-development it needs! Contact us below!

🎬Catch up on the Webinar series:

➡️FALL IN LOVE WITH TYPESCRIPT | Hacklunch

➡️COMPONENT DESIGN IN ANGULAR | Hacklunch

➡️Check out all of our current training:

✅Make sure to subscribe to our newsletter, we won't spam you!

👤Connect with us:
Рекомендации по теме
Комментарии
Автор

You can also use `Array.from(arguments)` or the spread operator `[...arguments]` to turn the arguments into a regular array that supports forEach and other array methods.

wilgert