as i seen this page, i wanted to ask for help, today i've wanted to write a "randomize text code without the javascript display in the elements but i couldn't do it can someone tell me what i did wrong and correct me it? also this is an example i want to be same as this. https://api.rtainc.co/twitch/8ball
and this is my code
<html>
<shadow><script type="text/javascript">
var textarray = [
"Hi, $(user)",
"Welcome, $(user)",
"how r u $(user)",
"HYD $(user)"
];
function RndText() {
var rannum= Math.floor(Math.random()*textarray.length);
If by "less" you mean, "less" the replacement for "css", You could use String.replace or a template library, or a new javaScript feature Template literals - JavaScript | MDN
JΛ̊KE
Leave a comment on jakecigar's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic