Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Is the following a valid variable assignment var product cost = 3.45;
Home
JavaScript
Is the following a valid variable assignment var product cost = 3.45;
+1
vote
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
Is the following a valid variable assignment var product cost = 3.45;
No. There should be no space in the variable name
No. Floating numbers are not allowed
Yes. It is valid
#java-code
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 7, 2020
by
SakshiSharma
No. There should be no space in the variable name
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: What is the output for the following
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
#java-code
+1
vote
Q: Is the following a valid variable definition? var 100apples
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
#javascript-variable
0
votes
Q: Select the best from following refers to using the existing code instead of rewriting it?
asked
Jan 24, 2021
in
JAVA
by
rajeshsharma
#java-code
java-feature
object-oriented-feature
Java-questions-answers
+1
vote
Q: Define How many objects are created in the following piece of code in Java?
asked
May 31, 2020
in
JAVA
by
SakshiSharma
#java-objects
#objects-java
#java-code
#code-java
Java-questions-answers
+1
vote
Q: Find out the correct output from below code
asked
Feb 8, 2020
in
JAVA
by
rahuljain1
#java-code
Java-questions-answers
0
votes
Q: Choose the correct output from below code
asked
Feb 8, 2020
in
JAVA
by
rahuljain1
#java-code
Java-questions-answers
0
votes
Q: Which design pattern have you used in your production code? apart from Singleton?
asked
Jan 27, 2020
in
JAVA
by
rahuljain1
#java-code
Java-questions-answers
0
votes
Q: What's the output? for (var i = 0; i < 3; i++) { setTimeout(() => console.log(i), 1); } for (let i = 0; i < 3; i++)
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: Consider the code snippet given below var count = [1,,3];
asked
Oct 8, 2022
in
JavaScript
by
rajeshsharma
code-snippet
javascript
0
votes
Q: In SAP S/, Cost element category 90 is replaced by an indicator ‘apply acct assignment statistically in Fixed Asset/ Material Acct’.
asked
Apr 11, 2022
in
SAP S/4HANA Finance demos
by
rajeshsharma
sap-cost-elements
...