run it:
edit in:
study it with:


examples

simple script -> drag them into the correct order

const a = "1";
const b = "2";
const c = a + b;
          

careful! -> the parsonizer won't work if your first line is indented

  const a = "1";
const b = "2";
const c = a + b;
          

a basic if/else -> drop the indented lines at the correct depth

if (null) {
  console.log('never');
} else {
  console.log('always');
};
          

nested if's -> drop the doubly indented line twice as far in

if (true) {
  if (false) {
    console.log('never');
  }; // inner
}; // outer
          

for loop with return -> up the challenge by adding extra lines

for (let i = 0; i < 4; i++) {
  i++;
  return i; #distractor
};
          

programming challenges -> practice the logic without the errors

function reverstring(str) {
  const arrayed = str.split("");
  const reversed = arrayed.reverse();
  const re_stringed = reversed.join("");
  return re_stringed;
};
          


parsonizer source code, powered by js-parsons



Janke Learning