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(', '));

Comments

Please log in to leave a comment.

Continue Reading:

Reversing a String in JavaScript: A Simple Guide

Published on January 26, 2024

javascriptpython

JavaScript Check if Array Contains Element

Published on January 26, 2024

javascript

JavaScript Remove Duplicates from an Array

Published on January 26, 2024

javascript

JavaScript Sum of Array Elements

Published on January 26, 2024

javascript

Sorting an Array

Published on January 26, 2024

javascript

Image Slider

Published on January 26, 2024

javascript

Sorting an Array in JavaScript

Published on January 26, 2024

javascript