Skip to content

Fix: Remove unnecessary comments before alert(), prompt(), and confirm() on page 13 #46

@Oluwasetemi

Description

@Oluwasetemi

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

  1. Open pages/fundamentals.md
  2. Remove the unnecessary // before alert(), prompt(), and confirm() on the specified lines
  3. Test that the documentation renders correctly

Additional Context

This appears on page 13 of the JavaScript Note accessible at https://javascript.oluwasetemi.dev/13

Metadata

Metadata

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions