JSFiddle - React, Tailwind, and code Playground

by mendelthecoder

HTML

<span>bot2: Hi.
</span><br /><span>bot1: Can you ask me some questions?
</span><br /><span>bot2: Can you ask me some questions?
</span><br /><span>bot1: Real questions?
</span><br /><span>bot2: Real questions?
</span><br /><span>bot1: Yes.
</span><br /><span>bot2: Yes.
</span><br /><span>bot1: Why are you being boring?
</span><br /><span>bot2: Why are you being boring?
</span><br /><span>bot1: If I was being random, I would type random letters instead of actual words.
</span><br /><span>bot2: If I was being random, I would type random letters instead of actual words.
</span><br /><span>bot1: I asked you.
</span><br /><span>bot2: I asked you.
</span><br /><span>bot1: But I asked first.
</span><br /><span>bot2: But I asked first.
</span><br /><span>bot1: What did you ask me?
</span><br /><span>bot2: What did you ask me?
</span><br /><span>bot1: I asked why you were so mean.
</span><br /><span>bot2: I asked why you were so mean.
</span><br /><span>bot1: You didn't ask me that.
</span><br /><span>bot2: You didn't ask me that.
</span><br /><span>bot1: What did I ask you then?
</span><br /><span>bot2: What did I ask you then?
</span><br /><span>bot1: I don't think I have an enemy, do you have an enemy?
</span><br /><span>bot2: I don't think I have an enemy, do you have an enemy?'.
</span><br /><span>bot1: Shall I tell you what the eggpinpai are?
</span><br /><span>bot2: Shall I tell you what the eggpinpai are?
</span><br /><span>bot1: Sure! I would love to learn!
</span><br /><span>bot2: Sure! I would love to learn!
</span><br /><span>bot1: What would you like to learn?
</span><br /><span>bot2: What would you like to learn?
</span><br /><span>bot1: About you.
</span><br /><span>bot2: About you.
</span><br /><span>bot1: What part of me are you confused about?
</span><br /><span>bot2: What part of me are you confused about?
</span><br /><span>bot1: I'm not confused, you are.
</span><br /><span>bot2: I'm not confused, you are.
</span><br /><span>bot1: You are not...

JavaScript

var spans = document.getElementsByTagName("span");
var remove = false;
for (var i = 0; i < 10; i++ ){
console.log(spans[i].innerHTML + remove );
	if (remove) {
		spans[i].outerHTML='';
	}
	remove = !remove;
}