College student fixes coding bug #code #programming #computerscience

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

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

Proof that video editing and coding are two separate skills

thetasworld
Автор

I don't know who's worse, the video editor or the college student

ericmacedo_
Автор

I think the editing is a little off. The “fixed” code is exactly the same as the beginning. The correct code should have a space with quotes around it between the two plus signs in the result variable.

monthlysurvey
Автор

Correction is,
var result = name + “ “ + b;

sandhu_sandhu_sandhu
Автор

At line 5, there's 2 + signs side by side, which forces to add void to the string. Thus it creates NaN (not a number).

talkingmurga
Автор

I never do coding in my entire life let alone watch coding videos. But why is youtube algorithm shoving coding content into my face right now😭

lolLOL-ffnr
Автор

this is business. the code has been never fixed. so it makes us to watch repeatedly and it increases the watch hours...

shyamprakash
Автор

Ong bro I spent 10 mins to see what changes he did 😭

lolwildriftbro
Автор

Did he just change the saved name variable to the entire string they wanted?

LoganMcmanus-mk
Автор

In the function on Line 5 should be
var result = name + " " + b;
+ is used to add numbers and
concatenate(put together) strings however if u dont tell the code that ur concatenating strings then it will try to add words which u cant do. By adding + " " tells the code to concatenate not add and add a space between Max Sucks

unamed_user
Автор

Probably his editor didnt know what to display down when he corrected the code .
So it appears a little off

ManojKumar-rpsp
Автор

I was already questioning my existence and my years as a software developer 😅😅😅

wendersonbarros
Автор

Your inferring “b” as a number. The two plus signs need a string between them, preferably with a space character.

LewisMoten
Автор

When the examiner itself don't know the answer... 😂😂

mohammedshammas
Автор

he just passed "Max Sucks B" and had it printed out

isTalong
Автор

Bro pulls out some random wrong code from internet and asks a random guy to solve it 😂.

RahulMehra
Автор

This guy needs to drop out. Not even joking if that was a struggle

jordannobert
Автор

watched this a couple times before checking the comments, thought i was losing my mind 💀😂

brianm
Автор

BONUS QUESTION: why does the bugged code actually run and output NaN? Surely a syntax error should be thrown, right??? RIGHT!?!?! Au contraire mon ami.

name + + b

Parsers Thoughts:
First I see name... great thats a string. I like strings.
Next I see the '+' operator. Oh ok, that means I'm doing concatenation, so what follows must be another string.

Another plus operator? But I was expecting a string! oh I know it's the unary convert-string operator, that takes a string of number characters and converts them to an actual number, which number I can then take and convert BACK into a string to concatenate with name.

b is "Sucks"? those aren't digits characters... ah thats ok, I have a special floating point value I can use... NaN. Now I'll just convert that float to a string.... 'N' 'a' 'N' and voila... Ok so name is 'Max' and my 2nd string is "NaN"... so "MaxNaN"

markvalentine
Автор

Thanks YouTube for completely blocking out the bottom of the screen so we can’t even see what’s going on

sitdowndusty