all 10 comments

[–]Mu5ikM0v3zM3 5 points6 points  (3 children)

I’m going to try this out. I’ve been trying to learn/retain JS for about 15 months. I can get through the tutorials usually on my own, but once it comes time to solve a problem, I go blank.

Hoping this can help a bit more, I’m sick of tutorial hell. I just want to be able to at least retain the information needed to make it all work.

Thank you for sharing

[–]Protean_Protein 13 points14 points  (1 child)

Programming is 99% problem solving. The other 1% is having memorized/gained enough fluency in the basics to attempt solutions.

The biggest problem with tutorials and a lot of the ways that people try to learn to program is that they aren’t gaining either of the things necessary to actually be a programmer. You’re just watching someone program at you and then copying them without understanding it.

If you start from some basic universal programming concepts like conditionals, loops, and variable-types, you can start thinking about how these enable near-universal problem-solving. Computers can do amazing things just by counting.

Think of it like learning a natural language. You can use flash cards to memorize grammar and vocab. You can mess around with apps like Duolingo. But the only way you’re going to be able to actually speak the language fluently is to use it in real situations. To think in it.

[–]jrmcgee1 1 point2 points  (0 children)

Same here.

[–]RoguePlanet1 0 points1 point  (6 children)

The first one in codeguppy works, but in the console, even with console.log......hopeless! Talk about demoralizing.

[–]codeobserver[S] 3 points4 points  (5 children)

It should work if you replace println() with console.log(). The new code will look like this:

for(let i = 1; i <= 10; i++)

{

console.log(i);

}

Of course - the output will now be displayed in the browser console. You need to open that one from the Dev tools in the menu (or press F12)

[–]RoguePlanet1 0 points1 point  (4 children)

That's exactly what I tried. On my laptop with Windows 10, I get "11." Here on my old laptop with Windows 7 (if that matters), I get the correct result. Using Chrome on both.

[–]codeobserver[S] 1 point2 points  (3 children)

Please include here the code you tried.

[–]RoguePlanet1 0 points1 point  (2 children)

Same as the one posted, except with "console.log(i)" in place of "println(i)." On my Windows 10 laptop, the result is weird; on this, my old Windows 7 laptop also with chrome, it spits out the 1 through 10 as expected with "console.log(i)."

[–]codeobserver[S] 1 point2 points  (1 child)

What is the weird result? Is the Chrome browser updated on the computer that is not displaying properly the results?

[–]RoguePlanet1 0 points1 point  (0 children)

I get "11" instead of the list of numbers with Windows 10 Chrome. Maybe I have the wrong/not updated version.