Check out example codes for "c# console clear". It will help you in understanding the concepts better.

Code Example 1

Console.Clear();

Code Example 2

using System;
using System.Collections.Generic;

class Program {
   static void Main() {
      ConsoleColor foreColor = Console.ForegroundColor;
      ConsoleColor backColor = Console.BackgroundColor;
      Console.WriteLine("Clearing the screen!");
      Console.Clear();
      ConsoleColor newForeColor = ConsoleColor.Blue;
      ConsoleColor newBackColor = ConsoleColor.Yellow;
   }
}

Learn ReactJs, React Native from akashmittal.com