Image Decoder explainer


#41

I am so confused with this exercise. Gave up and looked at the answer. Still in the dark. Feel so discouraged as why I couldn’t understand the task. If there were so many of us who were so confused, that meant the presenter failed miserably.


#42

Attached you will find my solution


#43

I’ve been really enjoying this!!

I definitely agree that either we need:
A) to know what “var img” is pulling from,
B) that this information is hidden, AND
C) to rename it from “img” would be a LOT less confusing


#44

Woww… ohh man… it’s like it was always der but I ignored repeatedly… thnx a lot


#45

Agree with all the other posters. To make sure I understand… So, the previous “my solution” that we had to update produced a bunch of ember-colored boxes for every letter that was not labeled ‘e’?

Also, why is the var named “img”. Doesn’t that usually stand for “image”? So confusing!


#46

hiii.
I am stuck in
the backpack mistake section as I don’t know how to put curly braces please help me


#47

Hi,

You may find what you’re looking for in the Backpack Mistake explainer page.

–Frankie


#48

agree it just like jumping from grade one to grade six suddenly

anyway i still can’t make it where can i found the answer?


#49

Hey @ignatius_pineapple,

If you go to the top of this page, you’ll find the explainer for Image Decoder and you tap on the blurred area to reveal an example solution for this puzzle.

H :slight_smile:


#50

oh got it! i can continue to next level today thx

it is a great app!


#51

Hi This is such a great idea I love the app all the lessons or understandable But when you come to this one it just To confusing


#52

That has too many missing clues. This is where I hang it up.


#53

Something to keep in mind is that you DO have enough information, especially if you review previous lessons to see how drawBoxes() works.

Also keep in mind that all programmers need to be able to work on code without knowing everything; you run into this anytime you use library code, and sometimes all you can do is try various things until you get the right results; usually at the same time, you also understand what was wrong before. If you are WRITING library code, img could literally have any value.

In this case, the instructions tell you EXACTLY what to do, although it’s not really clear that the first instruction paragraph is the overview and the second (final) instruction paragraph is the actual change you are asked to make.


#54

Im completely lost on this logic…even though i got your correct answer…


#55

Ok so I think I’m missing something here. I thinky coding is right from what I read from others but my img isn’t right … So below is screenshots of code and img


#56

Had to sperate post


#57

The If Statement’s test is checking if the entire image variable, img, is not equal to 'e'. That’s the same as checking if 'ewvveewvvw wiiwiiw webbwbbew weeggweggw ewyyewyyew woowoowe wrreewrrw' is different from 'e'. Instead, you want to check each letter separately.

The For Loop is already going to run the code for each letter in the img string. When it does this, it stores the letter in the letter variable. Try checking if letter !== 'e'.

–Frankie


#58

Thank you. That corrected the code. Hard to believe I didn’t notice that.


#59

Nice one like it,but an confused, a little, ok I got now