Open In App

Web technologies Questions | React.js Quiz | Set-2 | Question 7

Which of the following is called a message that is closed inside the curly braces?

const messages="Hii Geeks";
const element =<p>{messages}<p>

(A) JS Function
(B) JS Element
(C) JS Expression
(D) JSX Wrapper

Answer: (C)
Explanation: The JS Expression is a message that is closed inside the curly braces.
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :