menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
In JavaScript, which of the statements below can be used for string declaration? 1) var cst="PHPKB Knowledge Base Software"; 2) var cst=new String("PHPKB Knowledge Base Software"); a) Either (1) or (2)
asked
Nov 10, 2017
31.6k
views
4
votes
In JavaScript, which of the statements below can be used for string declaration?
1) var cst="PHPKB Knowledge Base Software";
2) var cst=new String("PHPKB Knowledge Base Software");
a) Either (1) or (2)
b) Only (1)
c) Neither (1) nor (2)
d) Only (2)
Computers and Technology
college
Broguyman
asked
by
Broguyman
8.2k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
2
votes
For a string primitive, b. For a String object, d. If we're non-specific, a.
Oshyshko
answered
Nov 16, 2017
by
Oshyshko
9.7k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jan 23, 2024
56.7k
views
What purpose does the mentioned programming statement of javascript serve? var mystring= new string ('this is a string object')? The name of a newly created instance of a string object is ________. The
Shoaib Anwar
asked
Jan 23, 2024
by
Shoaib Anwar
8.6k
points
Computers and Technology
high-school
1
answer
5
votes
56.7k
views
asked
Feb 21, 2024
194k
views
1. Which keyword do you use to define a JavaScript variable of a local scope? var variable local static
Fernando Carvalhosa
asked
Feb 21, 2024
by
Fernando Carvalhosa
8.2k
points
Computers and Technology
high-school
1
answer
0
votes
194k
views
asked
Aug 17, 2024
140k
views
Testing your this knowledge in JavaScript: What is the output of the following code? var length = 10; function fn() { ( ); } var obj = { length: 5, method: function(fn) { fn(); arguments[0](); } }; (fn,
Parohy
asked
Aug 17, 2024
by
Parohy
8.3k
points
Computers and Technology
high-school
1
answer
4
votes
140k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org