![]() ![]() ![]() Z = x - y // substracts x from y and assigns the resulting value to zĭocument.write (z) // prints the value of z, 40ĭocument.write ("x * y is ") // prints a message Z = x + y // adds 50 + 10 and assigns the result to the variable zĭocument.write (z) // prints the value of z, which is 60ĭocument.write ("x - y is ") // prints a string ![]() Document.write ("x = ") // prints a messageĭocument.write (x) // prints the value of xĭocument.write (", y = ") // prints a messageĭocument.write ("x + y is ") // prints a string message ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |