Getting Started

Create a new project in the ICE Code Editor. Use the Empty project template and call it Functions.

After the opening <script> tag, delete the line that says “Your code goes here,” and enter the following JavaScript.

var​ log = document.createElement(​'div'​); = ​'75px'​; = ​'450px'​; = ​'auto'​; = ​'1px solid #666'​; = ​'#ccc'​; = ​'8px'​; = ​'absolute'​; = ​'10px'​; = ​'20px'​;
var​ message = document.createElement(​'div'​);
message.textContent = ​'Hello, JavaScript functions!'​;
message ...

Get 3D Game Programming for Kids now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.