My quit button does not work in unity 5.3.5

hi fellow friends of this world called unity, i have a certain problem with my game, im new to all this unity thing and im currently working on my first unity game, most of what i have done im very happy because it works how i want it to do, but theres a really rare problem i have, if you are aswell new to unity or have had and error like this please tell me as soon as possible, what happens is that my script here:

public function BotonSalir()
{
SceneManagement.SceneManager.Quit();
}

well the problem is that when i do whatever script the QUIT button does not work, i have tried aswell puting a input as QUIT but it wont work, please i really need help, however yo are if you know or have has this problem please help

note: i have aswell tried on scenemanage.quit(); but it wont work aswell
btw im spanish thats why the buttons are called “jugar” and “salir”

I believe you look for https://docs.unity3d.com/ScriptReference/Application.Quit.html , as you can find in the description it doesn’t work in the editor