Exercise: Build an Image and Run It
Test yourself and implement what you have learned so far in this exercise.
We'll cover the following...
Create a file named compute.js with the following code that computes and displays the area of a disk using JavaScript:
Press + to interact
var radius = 2.0;var area = Math.pow(radius, 2) * Math.PI;console.log(`Area of a ${radius} cm disk:${area} cm²`);
Create a Docker image that runs the code in compute.js
file using the ...