JSFiddle - React, Tailwind, and code Playground

by Josh Pullen

JavaScript

function skip(text, n) {
	var t = "";
    for(i = n; i < text.length; i += n) {
    	t += text.charAt(i - 1);
    }
    return t;
}

console.log(skip("", 150));