1. In the following statement , n is assigned a/ an _____ value ?
n=’5’
a) String b) Float c) Operator d) Int
Answers
Answered by
1
Option(a) is the correct answer to the given question.
Explanation:
- In the given question the 5 is under the single quotes that is stored in the n variable. In the JavaScript we will used single quotes or the double quotes to store the string.
- The float datatype is used to store the decimal values that's why it is incorrect option .
- The operator is not the correct answer .Operator is used for the providing the operation between the two operand .
- The int datatype is used to store the integer value it should not in the single or the double quotes that's why these are incorrect option .
Learn More :
- brainly.in/question/16086788
Similar questions