So a lotoftimeswhenyou'redealingwithanarray, youhaveunnamedkeys, andbasicallyallyou'redoingisyou'redumpingah, lotofdifferentvaluesintothearray, andthenyou'llsortaerialtestagainstthosevalues, howeveryouseefit.
Sothisiskindoflikeanexampleoflike a reportcardtypesystem.
Well, whenyou'regoingtobeacts, whenyou'regoingtobeusing a systemlikethiswithbothnamedKeesandvaluesinthearraythatmanytimesyouwanttobeabletoturnthenamekeysintovariablesatthesametimeyouturnthevaluesandthevariablessothatyoucanworkwiththeminyourscript.
Equalsign, lessthansignandinthevalueforMarySinglequotationmarkwewillputwillput b plusapps.
We'llput B plusandtheywillclose a singlequotationmarkandthenwe'llputcomma.
SowhatthisdoesiscreateWecreatethenamekeyofMaryandsetthevaluetobePluswethencreatethenamekeyof 10 andsetthevalueto A Wecreatethename a keyofsue, andwesetthevaluetoseeAndthenwecloseparenthesesandwith a semicolon.
Sowe'vecreatedanarrayhereMaryTimZoowiththevaluesof B plus A and C.
SothenameofthekeyMaryTimSuewith a with a colonpastitthan a spaceandinthevalue.
SoMaryhad a B plus.
Timhadanessuhad a c soyoucoulddothiswiththingslikeinventorycontrol.
Youcandothisthingslikewithreportcards.
Basically, thisis a waythatyoucanusebothboththenamekiandthevalueas a wayto, youknow, setconditionswithin a script, beabletoprintthingsout, soonandsoforth.