how to switch scenes in unity

C#
using System.Collections; 
using System.Collections.Generic; 
using UnityEngine; 
using UnityEngine.SceneManagement;

//Load based on name of scene
public class SceneScript {
  public void ChangeScene(string scene = "") {
    SceneManager.LoadScene(sceneName:"scenes Name");
  }
}SceneManager.LoadScene("MyScene");using UnityEngine.SceneManagement;

SceneManager.LoadScene('Scene');
Source

Also in C#: