Learn the Date Object by Building a Date Formatter - Step 1

Tell us what’s happening:

I think I strictly followed the instruction. Is anything wrong about it?

Your code so far

instruction: All of the HTML and CSS for this project have been provided for you.

Start by getting the #current-date element using the .getElementById() method and assign it to a const variable called currentDateParagraph.

//
javascript

const currentDateParagraph  =  document.getElementById('#current-date');

Hi @natthayanamwiset

Try removing the #

I edited your post so the code correctly formats on the forum.

Happy coding

1 Like

it worked! Thank you:3

1 Like