Problem Solving with Code | Your First Coding Challenge | JavaScript Tutorial for Beginners

preview_player
Показать описание

In this video we'll tackle a code challenge and discuss how developers approach problem solving with code. All in less than 8 minutes!

✅ Quick Concepts outline:
Code Challenge #1 - Write JavaScript Code That Will Return a Random Letter From Your Name.

Practice Problem Solving with Code:
(00:00) Intro
(0:20) Define the overall problem
(0:34) Break the large problem into smaller problems
(0:45) Solving the first small problem
(1:30) Solving the second small problem
(2:30) Bring the solutions together to solve the large problem
(3:25) Finding a bug in our solution!
(4:25) Fixing the bug in the solution
(4:50) The solution to the problem works!
(4:55) Level up the solution to make it work for any name
(6:45) Now our solution works for any name!

📺 More Beginner JS Videos:

✅ Follow Me:

#Javascript #Problem #Solving
Рекомендации по теме
Комментарии
Автор

Thankyou so much Dave. Already having a positive feeling towards Javascript. Started with Html now I'm here. Hoping to finish it soon. Love your videos :)

Awpsun
Автор

Thank you Dave, I found this challenge very helpful to me, I was frustrated at first coz I'm still not very familiar to the JS lang, but I still manage to sort it out by myself. It really feels good, "break it into smaller problems to solve" I'll rmb this. Great teaching.

chanalan
Автор

Dude your going damn fast, some of us are still learning and you need to go slowly and one by one.

onlinestudies-jm
Автор

Dear Dave, thank you for adding references to your lessons. The deeper I get into the subject the more my interest grows. Thank you for your work lead.

IvanIvanov-ygml
Автор

can you make more videos like this? Thank you

francescotagliavento
Автор

Thank you Dave! You are a great teacher.

konstantinreut
Автор

//Write code that will return a random letter from our name
const myName="Stella";
//length of name
const nameLength=myName.length;
//Generate any number within the range of my name-remember indexing starts from 0
const
//Storing the random letter in a variable
const
//test code
console.log(randomLetter)

stellamargy
Автор

Since I'm also Dave, it's so hilarious at some places. Thanks :D

onlyonwed
Автор

let name = 'francesco';
let randomName = name[Math.floor(Math.random() * name.length)]; console.log(randomName); what about this line of code?

francescotagliavento
Автор

Hi Dave. Nice lesson. I have a question for you. * anyName.length))); my code some times generate 1 what is the reason for that?

dulanamanul
Автор

Are there going to be more JavaScript videos?

kolab
Автор

this video was actually like dora series 😂😂😂😂

hmehrzad
Автор

4:00 - I was about to comment that .charAt() method requires an argument starting from 0 and not from 1.. another interactive video :))

BTW, I'm happy that with the knowledges I've got from previous tutorials it was pretty easy to find the solution and write more universal code (which will be good to any name regardless of how many symbols it consists):
const myName = "Grigory";
* myName.length)));
PS: ok, I see that you explain universal solution as well :))) Thank you so much! It's a nice feeling to watch the video from 2 years ago and feel so interacted.

Grihlo
Автор

This is my code:
const myName = "Sajeeth"
const randVar1 = Math.random();
const randVar2 = Math.floor(randVar1 * myName.length);

console.log(randVar2);


// Is this code ok? does it meet the neat code requirements
// Please let me know mates

zukxxxx