What is a delimiter?

Hello, I am getting back to work on JS and I have forgotten something. What is a delimiter? The reason I am asking you is because other websites use terms which fly over my head. I need someone who can explain it in a more simple way.

Thank you for your help!

A delimiter is something that separates one thing from another in such a way that you know where it begins and ends. That is, it delimits the boundaries of something.

For example, a string is delimited by quotes, either single or double. An array is delimited by square braces on each end, an object by curlies.

2 Likes

Thank you! That is so much more clear than I was hoping for. I totally understand now.