Using Quotes and Apostrophes in Strings
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var exampleA:String = 'He said, "Yes."';
var exampleB:String = "He said, 'Yes.'";
var exampleC:String = "He said, \"Yes.\"";
trace(exampleA);
trace(exampleB);
trace(exampleC);
}
}
}
Related examples in the same category