frankcollins3 / ASPIZZA

microsoft learning module
1 stars 0 forks source link

accessing @ { } within @functions [8:14am] #8

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

attempting to do: provide accessibility to @{} within @functions

error: pizzaArray does not exist in the current context Screen Shot 2023-09-15 at 8 14 04 AM Screen Shot 2023-09-15 at 8 14 11 AM

proposed approach: having to redeclare the pizza array.

possible improvements: // write a new framework lol. kidding but I see why people write new languages. maybe they want to improve/fix quirks

frankcollins3 commented 1 year ago

in the case of random value just reference the @ { arr[] } and redeclare random value and use vanillaJS .textContent [10:39pm]