You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can assign variables from arrays with destructuring like this:
128
+
const arr = ["eyes", "nose", "lips", "ears"]
129
+
let [eyes, nose, lips, ears] = arr
130
+
*/
131
+
132
+
133
+
134
+
135
+
/*
136
+
Stack the Boxes
137
+
Here's an image of four models. Some of the cubes are hidden behind other cubes. Model one consists of one cube. Model two consists of four cubes, and so on...
138
+
Write a function that takes a number n and returns the number of stacked boxes in a model n levels high, visible and invisible.
139
+
*/
140
+
functionstackBoxes(n){
141
+
returnMath.pow(n,2);
142
+
}
143
+
144
+
145
+
/*
146
+
Array of Word Lengths
147
+
Create a function that takes an array of words and transforms it into an array of each word's length.
0 commit comments