Question: Given the following 'empty list' called names, what block can be used to add items to the beginning of the list? initialize app variable names
Given the following 'empty list' called names, what block can be used to add items to the beginning of the list?
initialize app variable names to
empty list
when addButton Click
when addButton
Click :
do
in list
app variable names
remove
#
app variable index
when addButton
Click
do
in list
app variable names :
insert at
last :
as
namelnput
s Text
when addButton
Click
do
in list
app variable names
insert at :
first :
as
namelnput :
s Text
when addButton
Click
do
set app variable index
to
in list
app variable names
find first
occurrence of item
namelnput
Text :
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
