课程: JavaScript Essential Training
今天就学习课程吧!
今天就开通帐号,24,600 门业界名师课程任您挑!
Practice: Pass values between functions - JavaScript教程
课程: JavaScript Essential Training
Practice: Pass values between functions
- Passing data to and returning data from functions changes a function from a basic, single purpose tool to an entire factory for data manipulation. In this practice assignment, you'll get to play with passing data back and forth between functions to create more efficient and reusable code. This is sort of a lead-up to how we work with components in JavaScript frameworks. So getting your mind on this track here and now will help you in the future as you continue on your learning journey. Here's what I want you to do. Writing markup for images quickly becomes clunky, especially if you wrap your images in a figure tag and add a figcaption or you use responsive images markup. In the practice files, you'll find a basic html page with a main container. Using everything you've learned so far, I want you to create two functions, one dependent on the other, to output some data from a custom object. The object is already…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
-
-
-
-
-
The real-world function2 分钟 49 秒
-
(已锁定)
Functions and methods6 分钟 23 秒
-
(已锁定)
A standard function3 分钟 53 秒
-
(已锁定)
The arrow function4 分钟 49 秒
-
(已锁定)
Arrow functions and "this"4 分钟 20 秒
-
(已锁定)
Practice: Build a function1 分钟 31 秒
-
(已锁定)
Pass data to a function with parameters4 分钟 56 秒
-
(已锁定)
Return values from a function7 分钟 1 秒
-
(已锁定)
Practice: Pass values between functions2 分钟 33 秒
-
(已锁定)
Callbacks5 分钟 29 秒
-
(已锁定)
Conditional if...else statement5 分钟 52 秒
-
(已锁定)
Logical operators3 分钟 31 秒
-
(已锁定)
Conditional switch statement5 分钟 55 秒
-
(已锁定)
Looping through content5 分钟 19 秒
-
(已锁定)
Using the map() array method4 分钟 52 秒
-
(已锁定)
Challenge intro: Create a content factory2 分钟 36 秒
-
(已锁定)
Solution: Create a content factory5 分钟 21 秒
-
-
-
-