Update index.md (#26333)
Update index.md (#26333)

Added and example of ternary syntax.
raisedadead/FreeCodeCamp,jonathanihm/freeCodeCamp,raisedadead/FreeCodeCamp,FreeCodeCamp/FreeCodeCamp,FreeCodeCamp/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp,jonathanihm/freeCodeCamp,BhaveshSGupta/FreeCodeCamp