Brackets

Should a 'Calculator' support '{' (curly braces) and '[' (box braces)

Should a 'Calculator' support '{' (curly braces) and '[' (box braces)
  1. What is the purpose of curly brackets ?
  2. What's the difference between a brace and a bracket ()?
  3. What do you use [] for?

What is the purpose of curly brackets ?

(curly braces)

Define the beginning and end of functions blocks and statement blocks such as the for and if structures. Curly braces are also used for defining initial values in array declarations.

What's the difference between a brace and a bracket ()?

Parentheses are smooth and curved ( ), brackets are square [ ], and braces are curly . In mathematics, they are mostly used for order of operations. The innermost parentheses are calculated first, followed by the brackets that form the next layer outwards, followed by braces that form a third layer outwards.

What do you use [] for?

Square brackets, often just called brackets in American English, are a set of punctuation marks that are most often used to alter or add information to quoted material.

Should UX researchers provide design recommendations?
What are UX researcher responsibilities?Should UX researchers learn design?What is the difference between a UX researcher and a design researcher? W...
Why is Figma/Adobe XD needed?
Why we use Adobe XD and Figma software?Should I use Figma or Adobe XD?What will happen to Adobe XD after Figma?What is Adobe XD useful for? Why we u...
What is a good way to display a list and editable list item on a detail page? [closed]
How do you display list items in HTML?How do I make a SharePoint list editable?How do I display a list horizontally in CSS? How do you display list ...