Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,222 members, 7,818,762 topics. Date: Monday, 06 May 2024 at 01:01 AM

Stuck In Javascript - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Stuck In Javascript (1097 Views)

Javascripters: Telegram Group To All Interested In Javascript And Its Ecosystem / How Do I Convert Object To Arrey In Javascript (2) (3) (4)

(1) (Reply) (Go Down)

Stuck In Javascript by davien(m): 10:06pm On Dec 08, 2022
After a while of learning JavaScript on FCC I eventually became stuck on basic algorithm scripting section.
I don't know how to reverse a string as I haven't done such before, though I know I'll probably use an array or there might be an inbuilt method for that, nor do I know how to return the biggest number from an array. My question now is;

I've learnt using books, videos and FCC + documentation from JavaScript dort info should I start learning how to approach algorithms or just read for the specific tests on FCC?

I'm at a level I could solve fizzbuzz, leap year challenges and simple things like converting fahrenheit to celsius though now I'm questioning my abilities because of these algorithms, plus taking a glance at the certification projects got my heart racing, those who've passed through the same experiences, what's your advice to approach the algorithms section on FCC and what skills should I learn along the way to make myself employable.

Note: I'm familiar with HTML, CSS(vanilla), SCSS, and bootstrap. Want to finish the JavaScript portion then move to react and redux and then node, express, bash and finally SQL in early 2024.
Re: Stuck In Javascript by davien(m): 10:11pm On Dec 08, 2022
I'm thinking of approaching things by knowing what the inbuilt JavaScript prototypes do.
They're the ones you can see on your console by using console.log(Object.prototype) and console.log(Array.prototype) while also strengthening my understanding of loops.
Re: Stuck In Javascript by Ayo081(m): 10:01am On Dec 09, 2022
Take it one step at a time. Learn how to solve problems instead.

You can't know all the inbuilt functions or prototypes like you mentioned.

Even if you know or learn them, you'll forget most/some. Some you won't be using through out your career life.

Learn how to break problems into steps (algorithm) and not bothering about the challenge on whatever platform.

Use Google. Even google developers use Google.

After breaking the steps down, then you can Google to learn the concepts you need (you'll come across thousands of articles on how to do that).

That way you can solve the challenge in whatever language.

For example I might choose to learn Go lang/Python and then use JavaScript FCC challenges to practice because I can break down the steps.


Note: I'm familiar with HTML, CSS(vanilla), SCSS, and bootstrap. Want to finish the JavaScript portion then move to react and redux and then node, express, bash and finally SQL in early 2024.

What exactly is your focus track? FE or BE? You really don't need to wait till "24 what happened to mid "23?

Choose a track FE or BE learn it well, build projects and apply for internships/jobs.

2 Likes

Re: Stuck In Javascript by Deicide: 1:27pm On Dec 09, 2022
A string is an Array of characters, well except in Rust that treats Strings differently grin

1 Like

Re: Stuck In Javascript by davien(m): 10:31pm On Dec 09, 2022
Ayo081:
Take it one step at a time. Learn how to solve problems instead.

You can't know all the inbuilt functions or prototypes like you mentioned.

Even if you know or learn them, you'll forget most/some. Some you won't be using through out your career life.

Learn how to break problems into steps (algorithm) and not bothering about the challenge on whatever platform.

Use Google. Even google developers use Google.

After breaking the steps down, then you can Google to learn the concepts you need (you'll come across thousands of articles on how to do that).

That way you can solve the challenge in whatever language.

For example I might choose to learn Go lang/Python and then use JavaScript FCC challenges to practice because I can break down the steps.



What exactly is your focus track? FE or BE? You really don't need to wait till "24 what happened to mid "23?

Choose a track FE or BE learn it well, build projects and apply for internships/jobs.
Thank you for the thorough post, I'm learning to land a frontend role.

1 Like

Re: Stuck In Javascript by Ayo081(m): 10:48pm On Dec 09, 2022
davien:
Thank you for the thorough post, I'm learning to land a frontend role.

Great, let your learning be project driven.

There's a lot to learn. Whatever you learn make sure you're using it in a project or when you start a project there'll definitely be something to learn.

Good luck.

2 Likes

Re: Stuck In Javascript by yinkbell: 7:52pm On Dec 15, 2022
Ayo081:
Take it one step at a time. Learn how to solve problems instead.

You can't know all the inbuilt functions or prototypes like you mentioned.

Even if you know or learn them, you'll forget most/some. Some you won't be using through out your career life.

Learn how to break problems into steps (algorithm) and not bothering about the challenge on whatever platform.

Use Google. Even google developers use Google.

After breaking the steps down, then you can Google to learn the concepts you need (you'll come across thousands of articles on how to do that).

That way you can solve the challenge in whatever language.

For example I might choose to learn Go lang/Python and then use JavaScript FCC challenges to practice because I can break down the steps.



What exactly is your focus track? FE or BE? You really don't need to wait till "24 what happened to mid "23?

Choose a track FE or BE learn it well, build projects and apply for internships/jobs.

Hello bro!
I just started JS using sololearn app. I can deduce you are vast in programming languages.

What's the meaning of FE & BE sir?
Re: Stuck In Javascript by Ayo081(m): 7:55pm On Dec 15, 2022
yinkbell:


Hello bro!
I just started JS using sololearn app. I can deduce you are vast in programming languages.

What's the meaning of FE & BE sir?

Frontend

Backend
Re: Stuck In Javascript by yinkbell: 8:01pm On Dec 15, 2022
Ayo081:
Take it one step at a time. Learn how to solve problems instead.

You can't know all the inbuilt functions or prototypes like you mentioned.

Even if you know or learn them, you'll forget most/some. Some you won't be using through out your career life.

Learn how to break problems into steps (algorithm) and not bothering about the challenge on whatever platform.

Use Google. Even google developers use Google.

After breaking the steps down, then you can Google to learn the concepts you need (you'll come across thousands of articles on how to do that).

That way you can solve the challenge in whatever language.

For example I might choose to learn Go lang/Python and then use JavaScript FCC challenges to practice because I can break down the steps.



What exactly is your focus track? FE or BE? You really don't need to wait till "24 what happened to mid "23?

Choose a track FE or BE learn it well, build projects and apply for internships/jobs.


Hello sir. What's the meaning of FE and BE sir?
Re: Stuck In Javascript by yinkbell: 8:02pm On Dec 15, 2022
Ayo081:


Frontend

Backend

Oh! Thanks bro. I get that. Can I send you a PM? I really need mentor along this line sir?
Re: Stuck In Javascript by Avast(m): 8:32pm On Dec 15, 2022
davien:
After a while of learning JavaScript on FCC I eventually became stuck on basic algorithm scripting section.
I don't know how to reverse a string as I haven't done such before, though I know I'll probably use an array or there might be an inbuilt method for that, nor do I know how to return the biggest number from an array. My question now is;

I've learnt using books, videos and FCC + documentation from JavaScript dort info should I start learning how to approach algorithms or just read for the specific tests on FCC?

I'm at a level I could solve fizzbuzz, leap year challenges and simple things like converting fahrenheit to celsius though now I'm questioning my abilities because of these algorithms, plus taking a glance at the certification projects got my heart racing, those who've passed through the same experiences, what's your advice to approach the algorithms section on FCC and what skills should I learn along the way to make myself employable.

Note: I'm familiar with HTML, CSS(vanilla), SCSS, and bootstrap. Want to finish the JavaScript portion then move to react and redux and then node, express, bash and finally SQL in early 2024.

Reversing a string should not be hard for you. Since you are familiar with array and you can loop through it, just start looping from the last element of the array.

Hint: last element is array.length-1
Re: Stuck In Javascript by Ayo081(m): 11:53pm On Dec 15, 2022
yinkbell:


Oh! Thanks bro. I get that. Can I send you a PM? I really need mentor along this line sir?

No please, I'm busy for now and mentorship requires a lot.

You can always your questions on here (I mean any thread) and mention me there a lot of E-mentors here willing to answer you.
Re: Stuck In Javascript by Ayo081(m): 11:55pm On Dec 15, 2022
Avast:


Reversing a string should not be hard for you. Since you are familiar with array and you can loop through it, just start looping from the last element of the array.

Hint: last element is array.length-1

There's an Array.reverse() method.
Re: Stuck In Javascript by qtguru(m): 2:41am On Dec 16, 2022
Ayo081:


There's an Array.reverse() method.

Inbuilt methods are not used for algo
Re: Stuck In Javascript by Avast(m): 5:10am On Dec 16, 2022
davien:
I'm thinking of approaching things by knowing what the inbuilt JavaScript prototypes do.

Ayo081
Re: Stuck In Javascript by Nobody: 7:50am On Dec 16, 2022
davien:
After a while of learning JavaScript on FCC I eventually became stuck on basic algorithm scripting section.
I don't know how to reverse a string as I haven't done such before, though I know I'll probably use an array or there might be an inbuilt method for that, nor do I know how to return the biggest number from an array. My question now is;

I've learnt using books, videos and FCC + documentation from JavaScript dort info should I start learning how to approach algorithms or just read for the specific tests on FCC?

I'm at a level I could solve fizzbuzz, leap year challenges and simple things like converting fahrenheit to celsius though now I'm questioning my abilities because of these algorithms, plus taking a glance at the certification projects got my heart racing, those who've passed through the same experiences, what's your advice to approach the algorithms section on FCC and what skills should I learn along the way to make myself employable.

Note: I'm familiar with HTML, CSS(vanilla), SCSS, and bootstrap. Want to finish the JavaScript portion then move to react and redux and then node, express, bash and finally SQL in early 2024.


Hey bro. These things are not really hard to do, you just haven't got your basics yet. Read more on string and array and what they really mean. Read your loops and control flow very well and understand them. Try solving some programming challenges. Just keep at it , one day you will get it.
Also you don't need to know all inbuilt methods. You can just Google the ones you need. Or rather most string manipulation methods can be easily built from scratch with for loops. I will advise you to try building them when you need them.
Summary is that you have to get your basics down first.
Re: Stuck In Javascript by Ayo081(m): 6:14pm On Dec 16, 2022
qtguru:


Inbuilt methods are not used for algo

Oh yeah, I answered that because I assumed OP just wanted to get things done.
Re: Stuck In Javascript by Ayo081(m): 6:16pm On Dec 16, 2022
davien:
I'm thinking of approaching things by knowing what the inbuilt JavaScript prototypes do.
They're the ones you can see on your console by using console.log(Object.prototype) and console.log(Array.prototype) while also strengthening my understanding of loops.

Avast:


Ayo081

They're good to know, but don't waste your time on them. Learn them when you're reading about Array, Objects or Classes.

You don't really need those prototype methods. With JavaScript ES6, you might not use those prototypes. So learn modern JavaScript (ES6 and above).

Spend time building actual projects instead. Your boss won't be interested in those inbuilt stuff. He/She just wants you to get things done.

So you'll mostly be working with libraries and frameworks (they're available to make us build faster. So use them).

Instead, learn how JavaScript works under the hood. The event loop and call stack.

I'll recommend a YouTube/Udemy course titled; "JavaScript: Understanding the weird parts."

Phamo0:

Hey bro. These things are not really hard to do, you just haven't got your basics yet. Read more on string and array and what they really mean. Read your loops and control flow very well and understand them. Try solving some programming challenges. Just keep at it , one day you will get it.
Also you don't need to know all inbuilt methods. You can just Google the ones you need. Or rather most string manipulation methods can be easily built from scratch with for loops. I will advise you to try building them when you need them.
Summary is that you have to get your basics down first.

2 Likes

Re: Stuck In Javascript by qtguru(m): 6:36pm On Dec 16, 2022
Ayo081:


Oh yeah, I answered that because I assumed OP just wanted to get things done.
Yeah i understand

2 Likes 1 Share

Re: Stuck In Javascript by LikeAking: 8:59pm On Dec 16, 2022
davien:
After a while of learning JavaScript on FCC I eventually became stuck on basic algorithm scripting section.
I don't know how to reverse a string as I haven't done such before, though I know I'll probably use an array or there might be an inbuilt method for that, nor do I know how to return the biggest number from an array. My question now is;

I've learnt using books, videos and FCC + documentation from JavaScript dort info should I start learning how to approach algorithms or just read for the specific tests on FCC?

I'm at a level I could solve fizzbuzz, leap year challenges and simple things like converting fahrenheit to celsius though now I'm questioning my abilities because of these algorithms, plus taking a glance at the certification projects got my heart racing, those who've passed through the same experiences, what's your advice to approach the algorithms section on FCC and what skills should I learn along the way to make myself employable.

Note: I'm familiar with HTML, CSS(vanilla), SCSS, and bootstrap. Want to finish the JavaScript portion then move to react and redux and then node, express, bash and finally SQL in early 2024.

Relax! Na small small. After u have learnt to reverse a string. Another one go still dey ahead... Calm down..

To reverse a string is very simple if you understand for let loops, while loops and co.

Instead of counting upwards,the normal way, count downwards to reverse a string. U will use the generated numbers to reference the array.

Instead of

for(let I = 0; I < string.length; I++){
console.log(string[I])
}

Do

for(let I = string. length-1; I >= 0; i--){
console.log(string[I])
}

U can manually do

String[5]
String[4]
String[3]
To
String[0]

To understand.

Feel free to drop any question, let me help u in my own small way.

3 Likes

Re: Stuck In Javascript by davien(m): 10:22pm On Dec 16, 2022
LikeAking:


Relax! Na small small. After u have learnt to reverse a string. Another one go still dey ahead... Calm down..

To reverse a string is very simple if you understand for let loops, while loops and co.

Instead of counting upwards,the normal way, count downwards to reverse a string. U will use the generated numbers to reference the array.

Instead of

for(let I = 0; I < string.length; I++){
console.log(string[I])
}

Do

for(let I = string. length-1; I >= 0; i--){
console.log(string[I])
}

U can manually do

String[5]
String[4]
String[3]
To
String[0]

To understand.

Feel free to drop any question, let me help u in my own small way.


Thank you so much bro, I am still learning JavaScript loops and have gotten the idea, the next stage now is how to access sub-arrays, 2D arrays.
Re: Stuck In Javascript by LikeAking: 10:24pm On Dec 16, 2022
davien:
Thank you so much bro, I am still learning JavaScript loops and have gotten the idea, the next stage now is how to access sub-arrays, 2D arrays.

Nice to hear.

2d/nested arrays are not hard... Just keep moving.. Goodluck.!

U re a fast learner.
Re: Stuck In Javascript by jesmond3945: 11:13pm On Dec 16, 2022
davien:
After a while of learning JavaScript on FCC I eventually became stuck on basic algorithm scripting section.
I don't know how to reverse a string as I haven't done such before, though I know I'll probably use an array or there might be an inbuilt method for that, nor do I know how to return the biggest number from an array. My question now is;

I've learnt using books, videos and FCC + documentation from JavaScript dort info should I start learning how to approach algorithms or just read for the specific tests on FCC?

I'm at a level I could solve fizzbuzz, leap year challenges and simple things like converting fahrenheit to celsius though now I'm questioning my abilities because of these algorithms, plus taking a glance at the certification projects got my heart racing, those who've passed through the same experiences, what's your advice to approach the algorithms section on FCC and what skills should I learn along the way to make myself employable.

Note: I'm familiar with HTML, CSS(vanilla), SCSS, and bootstrap. Want to finish the JavaScript portion then move to react and redux and then node, express, bash and finally SQL in early 2024.
another way is trying using it solve something personal to you, even the basics. For example you talked about converting fareheight. You can try converting meters, kg and so on. You talked about leap year, you can try expanding to other time stuff. This more like generalizing to other examples. When you do it like that it becomes clearer and fun.

(1) (Reply)

Help On Php Please! / Java Thin-client Programming / Finger Print Recognition System Needed

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 80
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.