.  7.1.1 JavaScript with HTML I dont understand what is wrong with this challenge activity .

CMPTR
3rd Edition
ISBN:9781337681872
Author:PINARD
Publisher:PINARD
Chapter20: Creating A Presentation
Section: Chapter Questions
Problem 1QY
icon
Related questions
Question

Question p    

7.1.1 JavaScript with HTML
I dont understand what is wrong with this challenge activity . 
 

Full explain this question and text typing work only     
We should answer our question within 2 hours takes more time then we will reduce Rating Dont ignore this line

Use the writeln() method of the document object to display the user agent in a <p> tag in the webpage. Hint: The userAgent
property of the window.navigator object contains the user agent.
1 <h1>Demo</h1>
2 kscript>
3
document.writeln('<p> + window.navigator.userAgent + '</p>
4 let platform-window.navigator.platform;
5 </script>
document.writenln("<p>Platform: "+(platform);
Check
Try again
* Error: (line 2) Uncaught SyntaxError, Invalid regular expression: missing /. The code editor above may provide more details for
this error
Transcribed Image Text:Use the writeln() method of the document object to display the user agent in a <p> tag in the webpage. Hint: The userAgent property of the window.navigator object contains the user agent. 1 <h1>Demo</h1> 2 kscript> 3 document.writeln('<p> + window.navigator.userAgent + '</p> 4 let platform-window.navigator.platform; 5 </script> document.writenln("<p>Platform: "+(platform); Check Try again * Error: (line 2) Uncaught SyntaxError, Invalid regular expression: missing /. The code editor above may provide more details for this error
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Hyperlinks
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage