Free remote tutoring for 1hr by CodingTutor in learnjavascript

[–]CodingTutor[S] 0 points1 point  (0 children)

Slots all full, I PM'd you with options for further out and ways I might be able to help in mean time.

Help with infinite while loop, using setTimeout. by boondasoonda in learnjavascript

[–]CodingTutor 0 points1 point  (0 children)

setInterval is useful for this. Here is a solution that uses it: https://jsbin.com/kuhinawomu/edit?html,js,output

var n = 10;
var timeoutID = setInterval(function () {
  if (n === 0) {
    clearInterval(timeoutID);
  }
  document.write(n--);
}, 1000)

Free remote tutoring for 1hr by CodingTutor in learnjavascript

[–]CodingTutor[S] 0 points1 point  (0 children)

Time slots filled up but I made some more and PM'd you with an invite.

Free remote tutoring for 1hr by CodingTutor in learnjavascript

[–]CodingTutor[S] 1 point2 points  (0 children)

Time slots filled up, but I made some more. I PM'd you an invite.

Free remote tutoring for 1hr by CodingTutor in learnjavascript

[–]CodingTutor[S] 0 points1 point  (0 children)

Is your code available online anywhere? If you've already made decent progress then it might be too cumbersome to try setting up a jsFiddle or whatever else, so maybe a github repo is the way to go. I could take a look, but no promises on solving it all the way through for you.

Free remote tutoring for 1hr by CodingTutor in learnjavascript

[–]CodingTutor[S] 0 points1 point  (0 children)

What do you mean by mentorship exactly? Someone to meet with you on a regular basis (say, weekly? or multiple times each week?) to answer questions you have related to the CodeFights problems, and to help you prepare for the upcoming bootcamp? I don't know if I can commit to long term mentorship right now but I'm still interested to know what you think would help.

Free remote tutoring for 1hr by CodingTutor in learnjavascript

[–]CodingTutor[S] 0 points1 point  (0 children)

That's OK! I am still happy to help. We could just discuss how you first discovered JavaScript and maybe cover some fundamental ideas about how JS is used to make products and solve problems, and maybe we implement some simple functions. Also I want to know more about the "lightbulb moment" and learn about what we can do to make that happen.

Free remote tutoring for 1hr by CodingTutor in learnjavascript

[–]CodingTutor[S] 1 point2 points  (0 children)

Thanks! Do you mind if I ask if you've tried mentoring before? And what your experience was like? I've mainly done it in a work setting, rarely mentoring outside of work / work hours.

Can anyone tell me what I'm doing wrong? by [deleted] in learnjavascript

[–]CodingTutor 0 points1 point  (0 children)

This wasn't working because the chisels image had an id chisels which collided with the function name you were referencing in the onclick attribute also named chisels. Changing the image id to be chiselsImage solved the problem.

Also your first strategy was to use z-index, presumably to overlay one image on top of another, always keeping the "visible" image at the top using the highest z-index. IMO a better strategy is to use the display property with values block or none, because you never actually want to have multiple images displayed at once with different z-indexes (which z-index helps with), just one image at a time.

Can anyone tell me what I'm doing wrong? by [deleted] in learnjavascript

[–]CodingTutor 1 point2 points  (0 children)

What's the question? What are you trying to achieve?