I I want to transform the letter A (65 in ascii), I should "go back" in the alphabets from 13 positions, but since A is the first letter I should start decreasing from Z, Y, X ....resulting in A --> N.

Instead you are simply reducing the ASCII of 13, so A (65 - 13 = 52) that is 4 :)

Hello, I am doing the javascript calculator project atm. I have an handleclick on the buttons of my calculator. It fires a function that has a switch statement to catch what button has been pushed and the related code to run. For 3 operations (-, x, /) I am using an HTML code (&#247; for division) but when checking for the value case val = "&#247;" it does not return true.

morning guys, is that a good idea to use "const"?product_id, product_subcategory are dynamic in the followingconst newObject = Object.assign(defaultObj, { entity: { id: product_id, categoryId: product_subcategory }});

@sabahatullah Here it doesn't matter whether you use let (or var) or const. const only protects against re-assignment to the variable. Most people who write ES6, use only const and let, and forget about var.

@Masd925 please correct me. if I put this code on the website and product id is different on on each page it won't give out any error. I am actually confused as I read it is used for constant only. re assigning gives error

@Masd925 Again, I feel like browser APIs have changed with the addition of CSS. Having learnt HTML and JavaScript for the first time over 20 years ago. Before CSS was even a thing. Tables and frames for layout (and people with text browsers complaining about tables and frames being used for layout).

And me writing server-side code in ColdFusion, with all those SQL injections possible because I just concatenated strings for the SQL query...

@tiagocorreiaalmeida I generally like tests to be explicit, so I don't have to go looking all around the code for explanation about what the test is doing. So if(str!=="") instead of if(str) and if(obj!==null) or if(obj!==undefined) instead of if(obj).

@shigaoping What if the first person isn't the one you search for? You instantly return "No such contact", without even looking at the second contact. On a name mismatch, keep iterating, and return "No such contact" only after the loop.

@Marmiz i fell asleep I seriously have never felt more lost in any challenge, usually after a hint or two I can figure it out as I am a man of fundamentals but if you could maybe link me to something I could read that would help

@kbaig One time someone was working with vanilla JS... but they had $ throughout the code..and I was confused.. since it looked like they were using it like you would in jQuery but the rest of the code wasn't jQuery.. eventually I think someone pointed out that they had $as a variable for document.getElementByID or whatever it was. Interesting use I thought

When I started with Java, around 1998, I used special characters all the time. Then I realized that my code broke whenever I changed from Windows to Linux or the other way around, due to different encoding. Replacing all the special characters with their unicode sequence to fix that made it unreadable.

@RoniqueRicketts Take a look at my game trading app https://github.com/JLuboff/GameTrader specifically in the app.js file and the routes->routes.js file to get an idea (in the routes file I think all my routes having to do with passport are /login/*

all ok :D , need your help if you dont mind, getting a bit crazy with this api ended up looking on your old fcc project the gmae trader, im getting poor quality images for the games not sure if doing something worng

Are you getting all fields from your request or just specific ones? I got specific ones/games/?search=${game.replace(
/\s/g,
'%20'
)}&fields=id,name,summary,total_rating,developers.name,publishers.name,game_modes.name,cover,release_dates.platform,release_dates.human&expand=developers,publishers,game_modes&filter[release_dates.platform][eq]=48&filter[release_dates.platform][eq]=49&limit=5`

Possibily. It is an odd API. Like why the hell do I need so many damn endpoints which then some can convert the returned numbers (i.e publishers is a number instead of a name) to an actual name and others cant.

hey fam can you help me find bugs? i need to add one more animation if the user doesnt turn on strict if he gets wrong theres should be effect but i couldnt get a mp3 error to embed. but heres my pen. https://codepen.io/artoo/pen/opQZWy?editors=0010