Ask your own question, for FREE!
QuestionCove Feedback 18 Online
mhchen:

Try typing this: ``` a [ b ] ``` without spaces. Everything within the brackets gets deleted, which messes up markdown code when you're accessing an element in an array.

AngeI:

A

AngeI:

Magic So if i put myself between those spaces

Hero:

$$\begin{align*} \color{green}{a}\color{blue}{[}\color{blue}{b}\color{blue}{]} \end{align*}$$

Hero:

I think that's what you want.

mhchen:

Yes it is, but without using latex

Hero:

with color and no latex?

mhchen:

just text or code markdown

Hero:

Okay

mhchen:

The main problem is if I'm trying to write this: ```javascript var array = [a,b,c]; for(let i=0;i<array.lengthi++){ array = 5; //array[ i ] = 5; } ``` As you can see array = 5 would not work here since it was supposed to be array[ I ] = 5

Hero:

Is this what you're trying to do: |dw:1570936758879:dw|

Hero:

``` var array = [a,b,c]; for(let i=0;i<array.lengthi++){ array[ i ] = 5; } ```

Hero:

I don't understand what you're trying to do

justjm:

a[ b]

justjm:

closest I could get

mhchen:

okay I guess I just need to add spaces

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!