[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

What's wrong with my code? Sorry I'm new

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 56
Thread images: 10

File: 12485.jpg (586KB, 1536x2048px) Image search: [Google]
12485.jpg
586KB, 1536x2048px
What's wrong with my code? Sorry I'm new
>>
Don't be sorry. In order to _really_ understand how to fix this you need to travel down a certain path though. To begin your journey you will need to

Install Gentoo
>>
>>55841861
> Want to code
> doesn't know how to take a decent screenshot

Shit dude you better quit now...
>>
>>55841861
you are supposed to close the tags after not before
>>
File: !.png (93KB, 197x193px) Image search: [Google]
!.png
93KB, 197x193px
>>55841861
I'm LMAOing at your life
>>
>>55841861
I'm gonna lie to myself and say this isn't bait.

You can't put HTML directly inside Javascript. Also, there is only one break tag, <br/>
>>
>>55841861
Nice job on this bait, son. It's kind of impressive.
>>
>>55842000
>>55842039
sorru iom really new. so how shoudl this look like. im really trying to learn
>>
>>55842039
He was waiting for the "taking a picture of the screen" replies.
>>
>>55842055
>>55841861
i'd believe if you took a picture with /g/ in a coment on your code
>>
>>55842000
It's react. Jsx
>>
Are you guys retarded?

That's the Muslim bomber faggot.
>>
>>55842063

don't make this weird, im really trying to learn.It's in JSX. I have no idea what im doing wrong. oaky so my div tab is closed, i need to open it. what else?
>>
>>55841861
if youre new why the fuck are you trying react.js lol
>>
>>55841861
Install TempleOS
>>
>>55842028
or haskell
>>
File: kys.png (106KB, 1091x796px) Image search: [Google]
kys.png
106KB, 1091x796px
>>55841861
Bretty obvious bait tbqfh famalamadingdonger

- some shit LRN 2 PRUHGRM website
- language /g/ hates because muh code artisan hotness
- literal physical screencapture
- blatant image reflection for bully points
- fagOtSX meme
- broken engrish comments
- idiotic mistakes that even Coco the capucin could not make

NaN / 10 bait

What the fuck are you doing with your life, OP? Instead of brushing up on your reimplemetation of fezzbazz in the meme language du jour (so you can finally get a fucking job, may at at a shop that's clogging up the tubes of the tumor known as the internet and bringing it closer to it's inadvertent demise), you're shitting out babby's first troll on a bhutanese basket weaving website. Go see a therapist and get a prescription for oxycodone. Maybe then you can finally remain silent by yourself. Maybe then you can start asking yourself what existential dread you are running from, by posting shit in the proverbial asshole of the internet that's more interested in lolis and video cards than whatever kind of twisted, veiled to the n-th degree screams for help you're writing here.

No matter what you pray to (or don't), no matter what political cause you fight for, no matter what philosophy you ascribe to, these is one immutable guaranteed reality: Death is coming. Naked and alone you are born and naked and alone you will die. No amount of edgy eggs dee internet culture will save you from your fears of death, loneliness, meaninglessness and above all else, your morbid fear of freedom. You should have gotten some defense mechanism that are not pleb-tier, seeing as you're not underage.

But you won't
Cause you didn't
Cause you can't

Cause what you end up doing with your days is what you end up doing with your life, OP. So it goes. As eternally prophesied OP is forever a flaming faggot of titanic proportions and we are all one step closer to damnation for inhibiting even the same top-level-domain as this poor excuse for a man.

Pic related
>>
>>55841861
low quality bait

also wtf is wrong with your fingers, Gumby?
>>
1. When using XML-based markup languages (and similar languages, like HTML), if tags are matched, they look like this:
<tag>value</tag>


When they are not matched, they look like this:
<tag />


The same is (mostly) true for HTML. You've got your div and article tags bass-ackwards, and br is actually supposed to be a stand-alone tag like <br />, and doesn't need to be closed (although if you're not doing XHTML, it can just be <br>, because HTML != XML; but I digress, it shouldn't be closed, and you should be consistent in which of the two you use).

2. I'm pretty sure you can't just shove raw HTML in Javascript like that. At the very least, put it into a string, and escape your quotes with a \. But then you're just left with a variable called profile that holds a string.

3. You really don't need to take a picture of your screen with your phone. Just take a screenshot. Or better yet, paste the code onto 4chan using code tags.
>>
>>55841861
>>55844974
Not only fake and gay, but also fat. Did whoever post this taxidermy OP's sad corpse so he could shitpost?
Come on, be forthcoming, desecration of a human corpse is just a felony.
>>
>>55845025
He's using JavaScript XML, anon. JSX for short. It's a statically-typed, version of js (.jsx files are compiled to .js before running) and, among other things, allows arbitrary html/xml as "native" values.
OP seems to be running a reactJS tutorial that uses JSX extensively (as far as I know).
>>
>>55841861
END YOUR LIFE
N
D

Y
O
U
R

L
I
F
E
>>
File: 1469948410067.jpg (42KB, 736x736px) Image search: [Google]
1469948410067.jpg
42KB, 736x736px
>>55844957
Why u mad tho?
>>
>>55844957
Trolled
>>
>>55845322
*troled
>>
File: 4L_A2Bei5Ye.jpg (161KB, 634x986px) Image search: [Google]
4L_A2Bei5Ye.jpg
161KB, 634x986px
>>55841861
Codeacademy is your first mistake. I seriously think they guys who created this site did it as a deterrent to decrease competition and to weed out idiots. The common response after a code academy "course" is "i finished the course but I don't think i learned anything and I still don't understand it."

Get a book from o'reilly or something if you really want to learn. Books are way better than shitty sites like codeacademy
>>
y'all postin in a troll thread
>>
>>55841861
>Chad trying to code
>>
File: 1448685232816.png (198KB, 500x504px) Image search: [Google]
1448685232816.png
198KB, 500x504px
>>55844957
>calls out bait for what it is
>proceeds to fall for it anyway
Why?
>>
>>55841861
Tomorrow go find the Dive into python on the web. Don't fucking worry if you get nothing at first. Then navigate to python.org and learn the standard library by bloody hard. Then grind, and I meant it, bitch, you grind the pythonian coding convention PEP8 until you know it by rote. When you write your first own imageboard, picking up html+css in the process, time to download and study any python-based asynchronous web-server. I recommend Tornado or Gevent. By the time you alter your imageboard so that it can at least manage giving off 5k request per second, you'd be ready to move on: the intriguing world of high-load programming at your feed. Apache Hadoop, ultrafast asynchronous key-value storages, MapReduce. It won't be long for you to laugh at the fuck ups of NEETs and poor Slavs that live off by sucking cocks and no longer than in half a year your income will grow to the point when any bitch will get wet from only a mention of your salary.
>>
>>55841861
>);
>>
>>55841861
hello Jenkins

LEE3EROOOIY
>>
Actually good bait
>>
>>55841861
Zach Hill?
>>
If that's not b8, kys
>>
>>55841861
God my eyes are shacking while looking at this fago-faggoty spaces.
>>
>>55841861
there appears to be a young man on it
>>
>>55841861
The url bar says "codecademy.com".

There's no 'a' in academy.
>>
>>55849732
there is, in fact, two "a"'s in "academy"
>>
>>55849732
academy? that website is "co-decade, my!"
>>
>>55841861
looks like normal web dev code to me
>>
File: tumblr_n2g4iiSXy51s973ueo1_400.jpg (32KB, 366x321px) Image search: [Google]
tumblr_n2g4iiSXy51s973ueo1_400.jpg
32KB, 366x321px
>>55845577
A book describing abstract concepts isn't going to help him.

You can read about a car engine and learn about concepts like oxygen intake and cylinders all you like but actually using a car and having to repair it is how you gain an appreciation for what it is and what you can accomplish with it.

Posting a random image because no one pays attention to your post unless there's something attention grabbing.
>>
>>55849805
learn from the rest, die like the best
>>
File: 562[1].png (158KB, 680x681px) Image search: [Google]
562[1].png
158KB, 680x681px
>>55841861
>>
File: 4L_hGqAVT9n.jpg (105KB, 492x661px) Image search: [Google]
4L_hGqAVT9n.jpg
105KB, 492x661px
>>55849823

Ok faggot this is why you and OP should just quit now and pursue other vocations.

Do you really fucking think that I an suggesting that OP get a beginner's book from O'Reilly (or other legit publishers) and just curl up in bed in his mom's panties and read the book while drinking a glass of wine??

You and op are giant faggots. Every single good book I've read to learn programming has you follow along and complete exercises and tutorials with a FUCKING COMPUTER. If you actually just sit there and read the book like it's 50 shades of Grey then yes that would be fucking stupid.

Also all these books are avail as pdfs these days too so the way i do it is to open the pdf ON MY FUCKING COMPUTER and then take notes ON MY FUCKING COMPUTER and then complete the exercises and tutorials in the book ON MY FUCKING COMPUTER.

This is why there's a shortage of talent these days because you idiot millennial faggots don't know how to read books and you definitely don't know how to READ THE FUCKING MANUAL. So enjoy pajeet shit tier status with you lazy "lmao420learn2code.com" websites that promote mental laziness.
>>
>>55841861
>no "how to take screenshot" tabs open
0/10
>>
>>55841861
protip.

mdn is your friend
https://developer.mozilla.org/en-US/

also i think you might want template strings.
>>
>>55851411
What's the point of memorizing shit in books when I can just look through them to reference the parts I need when I need them?
>>
>>55845577
what a great picture.
>>
>Idiots falling for obvious bait.
>>
File: 4L_dnNiZ1Ti.jpg (322KB, 1920x1080px) Image search: [Google]
4L_dnNiZ1Ti.jpg
322KB, 1920x1080px
>>55851531
I did not say memorize a book. I'm not talking about memorizing manuals i'm talking about learning by reading a book like Head First Javascript or some shit like that. And doing the tutorials and exercises the book tells you to do ON A FUCKING COMPUTER. I am not saying read and memorize the mozilla javascript manual. I'm talking about reading books that are meant to teach beginners how to program and are set up like college textbooks not books that are set up as reference manuals. It's like how an english class has a textbook that you learn from. But you being an extreme spectrum autist would think i am advocating reading the dictionary from cover to cover to learn english. But that is because u are giant fucking Faggot and you probably write shit tier pajeet code and you are probably indian and you probably shit in the street and live in a hut made of shit and mud.
>>
>>55841861
>run
>>
>>55851411
Completely Haram.
>>
>>55841980
kek
>>
>>55842000
You can in react, which hes doing
>>
>>55845577
fuark I hate trans people
Thread posts: 56
Thread images: 10


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.