PFC 04: Review

Try a “Hello World!” program in Javascript

alert(“Hello, World!”); or console.log(“Hello, World!”);

What if I want to write?
document.write(“Hello World!”);

Try a Hello World! program in Unity (Demo and compare)
Look at the code. What is MonoBehaviour?
How do I use these functions?
Awake and Start

What is an API and how will it help me?
A function in JS
function functionName(parameters) {
code to be executed

Try Calling a function in JavaScript
What is the difference between JS and C#?
What about Functions in Unity and the required Syntax?
Try calling a function in Unity (look up and Demo next week)

IF statements