The clear
/clean
functions β
Helps to clear the old outputs from the screen. This internally uses document.body.innerHTML = ""
.
Example β
pascal
program san_clearln(input,output);
var user_name: string;
begin
html('Lets make the screen full of text π
\n');
html('Lets make the screen full of text π
\n');
html('Lets make the screen full of text π
\n');
html('Lets make the screen full of text π
\n');
html('Lets make the screen full of text π
\n');
clear();
html('Follow me at https://instagram.com/sanjaiyan_dev \n');
end;