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
Can Javascript Code Be Broken In Different Lines?
Home
JavaScript
Can Javascript Code Be Broken In Different Lines?
+1
vote
asked
Dec 4, 2019
in
JavaScript
by
SakshiSharma
Can Javascript Code Be Broken In Different Lines?
#javascript-code
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 4, 2019
by
rajeshsharma
Breaking is possible within a string statement by using a backslash \ at the end but not within any other javascript statement.
that is ,
document.write("Hello \ world");
is possible but not document.write \
("hello world");
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
+1
vote
Q: Code A: var x = 10; y = --x + 1;
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
#javascript-code
0
votes
Q: What are the different ways a JavaScript code can be involved within an HTML file?
asked
Sep 19, 2021
in
JavaScript
by
sharadyadav1986
javascript-code
html-file
0
votes
Q: Which among the following Javascript library is used to bring out lines of code that deviate from coding style guides?
asked
Jan 13, 2020
in
Big Data | Hadoop
by
AdilsonLima
Bigdata-questions-answers
Hadoop-questions-answers
0
votes
Q: If the following lines of code differ, what is the difference?
asked
Mar 24, 2021
in
JavaScript
by
sharadyadav1986
javascript
data-types
boolean
0
votes
Q: Give a list of the various ways using which an HTML element can be accessed within a JavaScript code?
asked
Sep 19, 2021
in
JavaScript
by
sharadyadav1986
html-element
0
votes
Q: Which one of the given options can be considered as the correct output for the following JavaScript code?
asked
Mar 24, 2021
in
JavaScript
by
sharadyadav1986
javascript
object
0
votes
Q: What will be the output of the following Javascript code?var string1 = "Letsfindcourse"; var intvalue = 30; alert( string1 + intvalue );
asked
Oct 10, 2022
in
JavaScript
by
SakshiSharma
javascfript
code
0
votes
Q: What will be the output of the following JavaScript code?
asked
Mar 24, 2021
in
JavaScript
by
sharadyadav1986
javascript
output
0
votes
Q: What will be the correct output of the following JavaScript code?
asked
Mar 24, 2021
in
JavaScript
by
sharadyadav1986
javascript
output-value
0
votes
Q: What will be the correct output of the following JavaScript code?
asked
Mar 24, 2021
in
JavaScript
by
sharadyadav1986
javascript
output
...