I’m pretty new to programming. If anyone can explain what strings do and what’s the purpose of them, I’ll appreciate it.
1 Like
Hello, strings are a type of data. Generally in programming languages you’ll see them look like this:
"Hello, world!"
With quotes or double quotes surrounding them.
Strings are just text. You can use that text and print it out in Lua like:
print("Hello, world")
The purpose of strings is a way to represent characters, numbers, and other symbols as a strings data type.
If you need anymore info:
2 Likes
A string is a piece of text or information. A string may look like “Hello, world!”. Strings can consist of numbers, letters, characters, etc. Basically just plain text.
1 Like