Welcome to lab, a time for applying the ideas introduced in lecture in exercises that you will complete in small groups.
Within your breakout room, designate one of your team to be the screen sharer. Screen sharer, share your screen and claim your group’s task on Crowdsource. Make sure to enter every group member’s JMU eID so that they receive credit. Your group will be assigned a task number.
Team, complete the assigned task below. Screen sharer, be careful not to dominate. All members should contribute ideas.
Answer the following questions. Assemble your answers in a plain text document using your preferred method (Google Docs, Slack, Zoom chat, etc.).
var
, let
, and const
. What are the semantics of each? Does const
mean constant? What is meant by the term hoisting?==
and !=
problematic? How should comparisons be made?function delay(millis) {
return new Promise(resolve => setTimeout(resolve, millis));
}
alert
call to execute after 3 seconds has elapsed?a
and b
, how can I define a new array c
using this syntax?each
that accepts two parameters: an array and a callback function. For each element of the array, call the function with the element passed as the parameter. Use a loop; do not use any builtin array functions to achieve this. Write additional code to demonstrate that each
works.Screen sharer, when your group is done or when time is up, submit your group’s answers on Crowdsource. Do not submit a link; copy and paste the plain text content into the form.
Comments