Activity
Mon
Wed
Fri
Sun
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
What is this?
Less
More

Memberships

Developer Pro

Public β€’ 140 β€’ Free

Selftaught Developer Incubator

Private β€’ 398 β€’ $49/m

1135 contributions to Developer Pro
JavaScript challenge #35
JavaScript challenge #35 (iterating with a for loop and summing up numbers) The first one seems to be ok (let me know if it isn't) but for the second one that I was doing for practice it doesn't seem to be registering anything
2
4
New comment 3h ago
0 likes β€’ 5d
why are you doing this for (let i = 100; (i = 0); i--) ?
0 likes β€’ 3h
@Max Charles II if you want to iterate from the end of the array, you do For(let i = array length- 1; i >=0; i--)
React Todo App
https://codesandbox.io/p/sandbox/todo-react-final-knnnfr?file=%2Fsrc%2FComponents%2FChecklist%2Findex.js%3A56%2C1 Please review my code and let me know where there is a scope for improvement.
2
2
New comment 7h ago
1 like β€’ 13h
Hey Sharanjeet, In task details page you should also display the subtasks if any and the user should be able to mark individual subtasks as complete.
Weekly Update
I know it took a while but I finally made it to rank 6 on codewars.
9
2
New comment 14h ago
2 likes β€’ 19h
Congratulations 🎊 keep it up!
Question about React components
How do you decide which elements should be a component and which ones should be regular HTML in a React project? In this project I built, there are three components for the three major features of the app (saved colors, color picker, & color wheel). But it doesn't use any components for the elements within those components. I am trying to improve the project so that it is more in line with coding best practices.
4
2
New comment 14h ago
1 like β€’ 22h
So a component is a reusable piece of code, think of a button, an input, a list. You can have dumb components which only return jsx, like an svg icon, or functional components that also have their own state. I assume you refer to dumb components when you say "regular HTML"? I'm not sure if this what you refer to but I'm open to more discussion to clarify this for you
Array Methods - .map exercises
i was introduced to this method during a bootcamp I attended and was completely lost. I feel like I have a much better grasp on it now... hopefully. Posting these exercises to get some feedback; just want to make sure that i'm writing efficient code πŸ‘πŸΌ thanks! 😊 https://codepen.io/val-gee/pen/ZEgmvKY
6
2
New comment 2d ago
1 like β€’ 2d
good code Valentina. for capitalising names instead of this nameParts[nameParts.length - 1] you can just say nameParts[1] as you only have 2 elements in your nameParts array. to further improve your code you could declare a function that uppercases the first character of a string and use that function in your map as you repeat same code for first and last name. in the future you can also practice writing map with arrow functions, I find it more readable than function declaration. but that is outside the scope of this exercise. for instance here : const squareNumbers = numbers.map(num => num * num ); this is just a suggestion you can try in the future when you feel more confident with map. I am not sure you know about ternary operator but you can use it instead of if statements if the logic is not too complex. for instance here: const doubleEvens = numbers.map(num => num % 2 === 0 ? (num * 2) : num) I hope I didn't make you too confuse 😁 again, your code is great, these are just suggestions for the future.
1-10 of 1,135
Mioara Cenusa
7
5,400points to level up
@mioara-cenusa-9815
I am SAHM of two, who loves reading books, having nature walks and coding. I want to become a frontend developer and make myself and my family proud!

Active 1h ago
Joined Sep 22, 2023
United Kingdom
powered by