Codewars JavaScript Tutorial: How to approach solving basic kata

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

this is not a video on HOW to approach the challanges. this is video of the OP solving 3 riddles. not useful and misleading title.

Martin-jqth
Автор

2020: the year where programmers became better due to the coronavirus.

cndler
Автор

Hello James, I am new to programming and am attempting to learn python by myself. Is it okay to learn just the generals of 2 or 3 of them (I was actually thinking of learning c++ and java too) in the same fashion as the first? Or learn only one, but learn it in really a great depth?

napoleonbonaparte
Автор

I didn't found the link for the problems in the description.

shushantsingh
Автор

How about more codewars tutorials like this?

sogggy
Автор

can you make playlist on a katas python language

amanahmed
Автор

Hi there. Thanks for this, I found it incredibly useful - I've just subscribed :)

Just a quick question about the last challenge. I tried to reword your solution using an if statement but it doesn't seem to work. I'd really appreciate if you could explain what I may have missed or what I may need to do differently:

function points(games) {
return games.reduce((pointTotal, match) => {
const [x, y] = match.split(':');
var points = 0;
if (x>y) {points += 3}
else if (x==y) {points += 1}
else {points += 0}
pointTotal += points;
return pointTotal;
});
}


Sorry for being a pain and for posting code in a youtube comment, where it looks infinitely more ugly and out of place! I'd really appreciate any advice you could offer.


Thanks!

michaeldevlin
Автор

the problem i am having is that i can't find resources that could lead me to solving the problems

eljoven
Автор

For football points i wrote this code: obv your code was concise and awesome but as a beginner I wrote this:
const fun=(matches)=>{
let p1=[];
let p2=[];
let points=[];

p[i]=matches[i].slice(0, 1);
p1[i]=matches[i].slice(-1);
if(p[i]>p1[i])
points[i]=3;
else if(p[i]<p1[i])
points[i]=0;
else if(p[i]===p1[i])
points[i]=1;
}
return points.reduce((a, v)=>a+v, 0)

}
console.log(fun(['3:3', '1:3', '5:3', '4:4', '4:5', '4:4', '4:3', '1:3', '0:3', '4:0']));

AbdullahRehmanbsfo-Eve
Автор

they should shut this kind of websites

MrChilo
Автор

why did "+ 1" make it pass the test for the second kata you did?

rique
Автор

3.38 task. Is that a joke/trick question. It sounds bizarre: why would I climb over a seat, when I could walk down the row. If I have to climb over my seat, to yet another row filled with people to only have to still climb over one of their seats down one row makes most sense. Nobody climbs over seats in a theatre. If I had to answer this irl whiteboardtest, I´d fail bc my reply: I wouldn´t climb over a row in a THEATRE. & given the question, why does it matter the total number of rows/columns in the entire theatre: only yours & the one behind matter. I would totally fail questions like this. They don´t make sense. In context, even one person disturbed in the theatre means you stay til it´s over.

torbjorkette
Автор

I Learn To Codewars Of Javascript 👨‍💻👨‍💻

QayumSunny
Автор

How to approach solving advanced kata?

alexanderskladovski
Автор

I would like to do some exercise about class oop

manuict
Автор

Code Wars Tutorials are too difficult >.< (atleast for my level)

pjguitar
Автор

i had to google kata..omg why cant these people use simple terms like code exercise. stop trying to sound smart ur dealing with newbies in coding

antoniogross
welcome to shbcf.ru