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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.