Issue Description
On page 13 of the JavaScript Note (fundamentals.md), there are unnecessary comment slashes (//) before alert(), prompt(), and confirm() function examples.
Location
File: pages/fundamentals.md
Lines affected: 222-224, 228, 244, 248, 261, 265, 417
Current Code Examples
// Line 222-224
- The // alert() method: displays an alert box with a mesage and an OK button.
- The // prompt() method: It shows a modal window with a text message...
- The // confirm() method: The function shows a modal window with a question...
// Line 228
- The // alert() method displays an alert box with a mesage and an OK button
// Line 244
result = // prompt(text to show visitor, [default])
// Line 248
interview_Question = // prompt('What is the full meaning of CSS?', '')
// Line 261
result = // confirm(question)
// Line 265
let altschoolStatus = // confirm('Are you a v4 student ?')
// Line 417
// alert(true || false); // alert('Boy' || 4)
Expected
The comments should be removed so the code examples are cleaner:
- The alert() method: displays an alert box with a mesage and an OK button.
- The prompt() method: It shows a modal window with a text message...
- The confirm() method: The function shows a modal window with a question...
result = prompt(text to show visitor, [default])
interview_Question = prompt('What is the full meaning of CSS?', '')
result = confirm(question)
let altschoolStatus = confirm('Are you a v4 student ?')
alert(true || false); alert('Boy' || 4)
Steps to Fix
- Open
pages/fundamentals.md
- Remove the unnecessary
// before alert(), prompt(), and confirm() on the specified lines
- Test that the documentation renders correctly
Additional Context
This appears on page 13 of the JavaScript Note accessible at https://javascript.oluwasetemi.dev/13
Issue Description
On page 13 of the JavaScript Note (fundamentals.md), there are unnecessary comment slashes (//) before
alert(),prompt(), andconfirm()function examples.Location
File:
pages/fundamentals.mdLines affected: 222-224, 228, 244, 248, 261, 265, 417
Current Code Examples
Expected
The comments should be removed so the code examples are cleaner:
Steps to Fix
pages/fundamentals.md//beforealert(),prompt(), andconfirm()on the specified linesAdditional Context
This appears on page 13 of the JavaScript Note accessible at https://javascript.oluwasetemi.dev/13