₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,219 members, 8,510,726 topics. Date: Friday, 30 October 2026 at 10:40 PM

Toggle theme

Sixpathsofpain's Posts

Nairaland Forum › Sixpathsofpain's Profile › Sixpathsofpain's Posts

1 2 (of 2 pages)

Programming › Pro JS Devs, Please Is This Variable Chaining by sixpathsofpain(op): 2:58pm On Jul 01, 2022
I'm still a noob learning to code in JS on my phone with grasshopper.. since you opened this thread, I'm sure you know what variable chaining means and probably what array indexing means?
Okay I'll go straight to my question then..

While I was studying array indexing after learning about variable chaining, I say this code example that wanted to explain array indexing.


Var groceries = [
'apples'
'bananas'
'orange'
] ;

Var Fruit = groceries [1]


So after seeing that example and considering what I learnt from variable chaining, I made me wanna ask this. Can I also call this variable chaining since the value of the argument 'groceries' was assigned ( I think ) to the value of the argument 'fruit' ?

If I were were being taught by a programming teaching I probably would have asked him that too but since I am teaching myself, I have to seek for answers somewhere else..

So please, any one with any Idea of the answer should please help me. Thanks alot.

1 2 (of 2 pages)