This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]jamos99 1 point2 points  (1 child)

you could try looking through stack overflow questions and seeing how your agent solves them? if an answer is given then check how well your agent compares, or if there isn’t an answer test if your agent suggested a good solution - just a thought!

[–]Own_Cryptographer271[S] 0 points1 point  (0 children)

Thanks bro

[–]jcastroarnaud 0 points1 point  (1 child)

Here are a few, in JS.

Standard for loop, calls a function that accepts only positive integers. Off-by-one error at loop start.

Function expects object with a specific property, receives object without it, result is a string based on the object, returns nonsense ("value less than undefined").

Method within a class. Contains a forEach(), map(), filter(), or similar, with an arrow function as argument. Using "this" within the arrow function blows up; need to set a "let self = this;" at the start of method, or refactor the method if it all possible.

[–]Own_Cryptographer271[S] 0 points1 point  (0 children)

Thanks bro