Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 143 - 2615_KEC
P. 143

    A. Initialize Variables

                       Define variables to store user inputs and results:

                       var temperature = 0;
                       var convertFrom = "";

                       var convertTo = "";
                       var result = 0;
                     B. Add Event Listener for the Convert Button
                       Write code to capture inputs and perform the conversion:

                                                                             Designing User Interfaces and Simulating Data  141

| 138 139 140 141 142 143 144 145 146 147 148 |