javascript
Published on January 26, 2024By DeveloperBreeze
// Array representing a to-do list
const todoList = ['Task 1', 'Task 2', 'Task 3'];
// Display the to-do list using the join method
console.log('To-Do List:', todoList.join(', '));
// Array representing a to-do list
const todoList = ['Task 1', 'Task 2', 'Task 3'];
// Display the to-do list using the join method
console.log('To-Do List:', todoList.join(', '));
Published on August 20, 2024
Comments
Please log in to leave a comment.