0
What is parentheses ?😕
6 ответов
+ 2
Parenthesis are used mainly to pass parameters. Curly brackets for blocks. Square brackets for the array index. Carrot bracket for tags in html and php.
+ 2
in javascript and many other languages (parentheses) have several uses ...
1. to define a function...
function hi() {
//code goes here
}
2. to run an existing function
hi();
3. to hold an expression in a conditional such as...
if ( i===5 ) {
// code goes here
}
4. where normal math expressions use parentheses such as...
4*(5+10)
0
Parentheses refers to brackets.
There are various types of parentheses
( )
{ }
[ ]
< >this one is used in HTML
0
( or ) : One parenthesis
() :Two parentheses
[] :Square brackets
{}:curly braces
<>:larger/smaller (used in html)