AI coding jobs remote for JavaScript and TypeScript developers

For experts4 min read

A Ghanaian front-end developer typing at a laptop in a small home office in Accra, notebook and tea beside the keyboard, warm evening light

AI coding jobs remote work does not stop at Python. JavaScript and TypeScript are among the common languages for review, ranking and test-writing tasks, because so much model-written code is web code. Here is what the tasks look like and what to practise.

What AI coding jobs remote work looks like in JavaScript

You see a prompt, such as 'write a debounce function' or 'fetch three URLs and combine the results', and a model answer. Your job is to judge it. The questions you answer are practical. Does it run? Does it handle errors? Is it the version a senior developer would accept in a pull request?

Tasks can also ask you to write code from nothing, to fix a failing test, or to write the test suite for a function. You work in plain text or in a browser editor, and the snippets are usually short.

Traps that graders and reviewers look for

JavaScript has behaviour that surprises even careful developers, and models repeat the same mistakes. Three are worth knowing cold.

First, Array.prototype.sort. With no compare function it converts elements to strings and compares them, so numbers sort in the wrong order. It also sorts in place.

JavaScript
const nums = [40, 1, 5, 200];nums.sort();                 // [1, 200, 40, 5]  wrong for numbersnums.sort((a, b) => a - b);  // [1, 5, 40, 200]  correct
“because numbers are converted to strings, "80" comes before "9" in the Unicode order.”
MDN, Array.prototype.sort

Source: MDN: Array.prototype.sort(opens in a new tab)

Second, loose equality. With ==, the string '1' equals the number 1 and 0 equals false, while 0 does not equal null. A review that flags == where the spec needs exact matching is a good review.

Source: MDN: Equality (==)(opens in a new tab)

Third, Promise.all. It rejects as soon as any input rejects, and it does not cancel the other operations. If the task says 'return every result even when some fail', the right tool is Promise.allSettled.

JavaScript
const results = await Promise.allSettled(urls.map((u) => fetch(u)));const ok = results.filter((r) => r.status === "fulfilled");console.log(ok.length, "of", urls.length, "succeeded");

Source: MDN: Promise.all()(opens in a new tab)

When you write a review, name the exact input that breaks the code. 'This fails when the array is empty' is something a model can learn from. 'This is buggy' is not. Where possible, include a one-line call that shows the failure, such as sum([]) returning undefined instead of 0.

TypeScript tasks

TypeScript tasks add a second layer. A model answer can compile and still be wrong, for example by casting with 'as' to silence the compiler, or by typing a value as any. A reviewer should ask whether the types describe the real data, not whether the red lines went away.

  • Are union types narrowed before use, or is the code asserting its way past them?
  • Does an async function return the right promise type, and does the caller await it?
  • Are null and undefined handled where the data can actually be missing?
  • Does the test file check behaviour, or only that the function exists?

Async code deserves special care. Look for a missing await inside a loop, a forEach with an async callback that nobody waits for, and a try block that wraps the call but not the await. Each one runs without error in a quick test and fails in production.

Also read the prompt for hidden requirements. 'Do not mutate the input' rules out a bare sort or splice. 'Support Node 18' rules out syntax or methods that came later. Graders mark answers against the whole prompt, not just the headline task.

How to prepare

  1. Pick ten small utilities you could write blind: debounce, deep clone, flatten, group by, retry with backoff, a simple event emitter.
  2. Write each one, then write five tests, with at least two edge cases.
  3. Review your own code a day later as if a stranger wrote it, and write down what you would reject.
  4. Practise reasons. 'This is wrong because X, and the fix is Y' beats 'looks bad'.

Keep a small notebook of the mistakes you catch in your own code. After a month it becomes your own checklist, and it is more useful than any list on a website. Review time drops because you know where to look first.

Also be ready for Node and browser differences. A task may say which environment applies, and an answer that uses a browser-only API in Node code is a defect.

Remote, part time and realistic

Most developers do this work next to another job or study. Projects are set by clients, and the rate is set per job. Work comes in waves, so treat it as extra income that can grow, not as a salary you can plan a mortgage around.

Curatrain tests JavaScript and TypeScript at graded levels and matches experts only to jobs whose tests they passed. The minimum rate on any job is $7 an hour, and the client sets the rate per job. Sign up free at curatrain.com/login.