Today in this tutorial we discuss on the topic is:
JavaScript Syntax:
1) JavaScript Syntax?
2) JavaScript Values?
3) JavaScript literals?
4) JavaScript variables?
5) JavaScript operators?
6) JavaScript Expressions?
1Ans)
JavaScript syntax is the set of rules
2Ans)
The JavaScript syntax defines two types of values: Fixed values and variable values.
3Ans) The most important rules for writing fixed values are:
Numbers are written with or without decimals.
Strings are text, written within double or single quotes.
4Ans)
In a programming language, variables are used to store data values.
JavaScript uses the var keyword to declare variables.
An equal sign is used to assign values to variables.
5Ans)
JavaScript uses arithmetic operators ( + – * / ) to compute values.JavaScript uses an assignment operator ( = ) to assign values to variables.
6Ans) An expression is a combination of values, variables, and operators, which computes to a value.
The computation is called an evaluation.

Press here: Programming for more similar videos

Tags: , , , ,

Watch more:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.