Перейти к содержимому

JavaScript Lab4 Demo

edusarva

0:00 / 0:00

JavaScript Lab4 Demo

66 просмотров · 2 недели назад
edusarva
166 подписчиков
66 просмотров · 2 недели назад
Lab 4: Working with Functions Covers: Week 5 (declarations, expressions, arrow functions, parameters, return values, callbacks, sorting) Overview You will write the same kind of logic in three function styles, work with default and rest parameters, return values of several kinds, and then pass your own functions to map, filter, and sort. Every function is tested with values seeded from your Student Key, and your Lab Signature is computed by your own functions — if they work, it works. Learning Outcomes Define and invoke function declarations, expressions, and arrow functions Use parameters, default values, and rest parameters Return values from functions and explain what a function without return produces Explain function scope and why parameters are preferable to outside variables Pass functions as callbacks to map, filter, and sort