[ Team LiB ] Previous Section Next Section

Exercises

  1. Create a script that contains at least five different variables. Populate them with values of different data types and use the gettype() function to print each type to the browser.

  2. Assign values to two variables. Use comparison operators to test whether the first value is

    • The same as the second

    • Less than the second

    • Greater than the second

    • Less than or equal to the second

    Print the result of each test to the browser.

    Change the values assigned to your test variables and run the script again.

    [ Team LiB ] Previous Section Next Section