Spaces:
Running
Running
sarahciston
commited on
try foreach loop
Browse files
sketch.js
CHANGED
@@ -187,7 +187,11 @@ new p5(function (p5){
|
|
187 |
PROMPT_INPUT = pField.value() // grab update to the prompt if it's been changed
|
188 |
console.log("latest prompt: ", PROMPT_INPUT)
|
189 |
|
190 |
-
let blanksValues = blanksArray.map(({value}) => value)
|
|
|
|
|
|
|
|
|
191 |
console.log(blanksValues)
|
192 |
|
193 |
// blanksArray.forEach(b => console.log(b.value()))
|
|
|
187 |
PROMPT_INPUT = pField.value() // grab update to the prompt if it's been changed
|
188 |
console.log("latest prompt: ", PROMPT_INPUT)
|
189 |
|
190 |
+
// let blanksValues = blanksArray.map(({value}) => value)
|
191 |
+
let blanksValues = []
|
192 |
+
blanksArray.forEach(b => {
|
193 |
+
blanksValues.push(b.value())
|
194 |
+
})
|
195 |
console.log(blanksValues)
|
196 |
|
197 |
// blanksArray.forEach(b => console.log(b.value()))
|