What are strings?

342 views

There is a recent tweet in which a lady said 1+2=12.

Obviously that is wrong but everyone keeps saying “it’s wrong unless we are talking about strings”

What are strings?

Edit: thank you all for explaining:) have a cookie 🍪 and a wonderful day

In: 6

10 Answers

Anonymous 0 Comments

String is a programming data type. It’s basically a sentence of words, or alphanumeric characters that are intended to be read as a string, or straight characters, and does not have math operations performed on it. Integer is another data type, basically whole numbers that can be used for math. Another common data type is float, which is basically a number with a decimal. There are other data types, but those are the main 3 that you’ll ever use.

You are viewing 1 out of 10 answers, click here to view all answers.