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

in.listformat javascript not get the point #93

Open
tarikul0153 opened this issue Sep 13, 2022 · 0 comments
Open

in.listformat javascript not get the point #93

tarikul0153 opened this issue Sep 13, 2022 · 0 comments

Comments

@tarikul0153
Copy link

"This page was built using: HTML, CSS and JavaScript". The words "HTML", "CSS", "JavaScript" should be stored in an array and generated on the website rather than be "hard-coded". The word “and” should not be in your array, but it should be in your sentence.
Create the array in a way that if more languages were added to the array, the code wouldn’t need any extra modifications.
Your solution needs to work with all of the following arrays interchangeably:
a. const codingLanguages = ["HTML"]
b. const codingLanguages = ["HTML", "CSS", "JavaScript"]
c. const codingLanguages = ["HTML", "CSS", "JavaScript", "Python", "Java", "C++"]
The original array must preserve its original characters without modifications (no adding spaces, commas, or any other character).
The sentence generated should have a space after each comma, except for the last element, which should have " and " before. e.g. ["HTML", "CSS", "JavaScript"] => '''This website has been created with: HTML, CSS and JavaScript'

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

1 participant