missing method exception error

m new to unity just a beginner i typed the following java scrpit

function Update ()

{
Debug.log(“this is an experiment”);

}

m getting the following error

MissingMethodException: Method not found: ‘UnityEngine.Debug.log’.

plz help me !

Hello,

try

Debug.Log("this is an experiment"); 

instead of

Debug.log

The char case is important.

It’s Debug.Log, you have to capitalize the “L” in log. You’re going to come across this syntax problem a lot, so make it standard practice look for these mistakes first. Also, I would suggest you using a third-party code editor that utilizes some form of intellisense, which is code hinting, code completion, and tells you what methods are available to you when calling a class, etc.

I’m not sure of any good java script editors as I don’t really use js that much, but I tend to use NotePad++ for anything that isn’t c# related.

thanks a lot ! a small thing that i couldn’t recognize ! thanks very much !