₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,239 members, 8,420,929 topics. Date: Friday, 05 June 2026 at 02:21 PM

Toggle theme

Sixpathsofpain's Posts

Nairaland ForumSixpathsofpain's ProfileSixpathsofpain's Posts

1 2 (of 2 pages)

ProgrammingPro 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)