Tell us what’s happening:
Describe your issue in detail here.
The “Bracket” used in this challenge ought to be explained as ‘SQUARE BRACKET’ to differentiate it from other types of brackets or parentheses. Due to this confusion I spent 7 days to complete this challenge.
Thank you.
Your code so far
// Setup
let firstLetterOfLastName = "";
const lastName = "Lovelace";
// Only change code below this line
firstLetterOfLastName = lastName; // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36
Challenge: Use Bracket Notation to Find the First Character in a String
I think that makes it clear what kind of brackets they wanted. I would suggest reading more closely. In the professional coding world. A lot of things are not explained explicitly and have to be inferred from code.
The in the US (primarily where this was built), they can be called “square brackets” but are also often just called “brackets”. For example, the MDN article makes no mention of “square”.
But I get that people from other parts of the world may have different words for things. If you feel strongly about it, you can always start an issue on the repo.
I appreciate your response, Kevin.
Earlier on I did not take into account the differences in types of brackets. Since the observation is already noted at FreeCodeCamp.com I am relieved.
Many thanks.
Edmund.
Oh yeah! The wording would affect it because ‘parentheses ( )’ bracket offers a different function from a ‘square ’ bracket. You may wish to try both to ascertain this. As I said earlier, Kevin Smith’s explanation satisfied my initial observation.
Edmund.
I think it just takes a little time for it to click for some people about how much attention you have to pay to detail. But it is very important in this type of work.
If you check the image on the right, with the different brackets distinguished in common naming, you will notice that square brackets are also commonly called simply brackets, while other types of brackets tend to be specified. Also, the first thing that came to me when I googled “brackets” is an image of square brackets. The challenge itself, does use only square brackets in its examples, so I find it very odd to be misled on what type of brackets one has to use(take it from a non-native english speaker, who made almost no destinguishing between words like brackets and parenthesis, back when I was solving this challenge for the first time).