Public
Edited
Oct 30, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function test(input) {
let arr1 = ['A','T','C','G'];
let arr2 = ['T','A','G','C'];
return Array.from(input).map(letter => arr2[arr1.indexOf(letter)]).join('');
}

Insert cell
(1+1)*(2+1)*(3+1)
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more