viewofflagSearch2=Text({placeholder:"paste a flag emoji here!",value:"🇦🇶"})
{
constresult=pairs.get(flagSearch2);
switch(result){
caseundefined:
returnmd`<span style="font-size:x-large">Please paste a flag emoji into the text field<span>`;
case'':
returnmd`<span style="font-size:x-large">${flagSearch2} cannot be reversed 😞<br><br> ${flagSearch2} ⮀ ${flagSearch2[2]+flagSearch2[3]+flagSearch2[0]+flagSearch2[1]}</span>`;
default:
returnmd`<span style="font-size:x-large">${flagSearch2} can be reversed! 😊<br><br> ${flagSearch2} ⮀ ${result}</span>`
}
}
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.