Tell us what’s happening:
SyntaxError: Cannot declare a const variable twice: ‘n’.
I used another laptop microsoft and it works.
is there a program I have to download for Mac laptop?
Your code so far
Your browser information:
User Agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8.
Challenge: Say Hello to HTML Elements Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
I don’t think you need a new browser maybe you missed a tag or a slash or bracket…Mac doesn’t usually have problem…I mean, It’s APPLE they know tech.
Is your browser fully up to date?
so quick question -
where are you typing the html ? is it in safari’s dev console ?
is that code line the only thing you are trying to execute ? from the error looks like there is something else along - hopefully NO \n by mistakes.
A screenshot of how u r running the code will be very helpful
My Mac is up to date as is Safari. That said you’re a couple of versions behind on both. Maybe you can’t update.
When you ran it on Microsoft you obviously didn’t use Safari so how about loading Chrome on your Mac and seeing if it passes.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.