Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 4: Template literals -Pass a function inside a template literal #30

Open
realloka opened this issue Sep 5, 2023 · 3 comments
Open

Comments

@realloka
Copy link

realloka commented Sep 5, 2023

// display all our groceries in a p tag, the last one will include all the one from the array **others**
->
It appears that the "**others**" part in the comment of the JavaScript source was just printed out 
while trying to express it in bold in Markdown syntax.

Is that right?

@DonMiller9294
Copy link

Yes, you are correct. The comment in the JavaScript source code appears to be an attempt to emphasize the word "others" by making it bold, as you would in Markdown syntax. However, in JavaScript comments, you cannot apply formatting like you can in Markdown or rich text editors, so the comment text "others" was simply printed as is, without any formatting applied.

@realloka
Copy link
Author

realloka commented Sep 5, 2023

github issues supports Markdown, so it just appeared in bold. It has been edited to look like the original.

Actually, I bought a paper book, and it could have been written in bold, but it came out in Markdown like **, so I was trying to ask about the author's intention.

@DonMiller9294
Copy link

I understand, let me do a little more research.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants