Skip to content
On this page

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;