| <!-- | |
| Copyright 2020 The Chromium Authors | |
| Use of this source code is governed by a BSD-style license that can be | |
| found in the LICENSE file. | |
| --> | |
| <script type="module"> | |
| console.log(null); | |
| console.log(undefined); | |
| console.log(NaN); | |
| console.log({}); | |
| console.log([function() {}]); | |
| console.log(["test"]); | |
| console.log(Number.POSITIVE_INFINITY); | |
| console.log(Number.NEGATIVE_INFINITY); | |
| console.log(new Number(42)); | |
| console.log(new String('abc')); | |
| const num = 1.2e-1; | |
| console.log(num); | |
| const negZero = 1 / Number.NEGATIVE_INFINITY; | |
| console.log(negZero); | |
| const string1 = 'test'; | |
| const string2 = "test named \"test\""; | |
| console.log(string1); | |
| console.log(string2); | |
| const linkify = 'https://chromium.org'; | |
| console.log(linkify); | |
| const boxedNumberWithProps = new Number(42); | |
| boxedNumberWithProps[1] = 'foo'; | |
| boxedNumberWithProps['a'] = 'bar'; | |
| console.log(boxedNumberWithProps); | |
| const boxedStringWithProps = new String('abc'); | |
| boxedStringWithProps['01'] = 'foo'; | |
| boxedStringWithProps[3] = 'foo'; | |
| boxedStringWithProps['a'] = 'bar'; | |
| console.log(boxedStringWithProps); | |
| </script> |