9. Delete: Confused about [ ] { } and ( )


#1

Hey guys, for a while I've been confused about the use of [ ], { } and ( ). { } is a little more obvious but for the following line:

movies.delete(title)

How come it is not movies.delete[title]

I pass the exercise if I use ( ) but not if I use [ ].

Sorry, I know it sounds really basic. Tried searching for the syntax online but I can't seem to find an answer.

Thanks guys!

`


#2

because delete is a built in function, and functions use ()

[] is for arrays, you use [] to access arrays.