* Copyright (c) 2026 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
function basic_op()
{
let a = 10;
let b = +a;
let c = -a;
let d = ~a;
let e = !a;
let f = a + b;
let g = a - b;
let h = a * b;
let i = a / b;
let j = a % b;
let k = a & b;
let l = a | b;
let m = a ^ b;
let n = a << 1;
let o = a >> 1;
let p = a >>> 1;
let cmp1 = a == b;
let cmp2 = a != b;
let cmp3 = a === b;
let cmp4 = a !== b;
let cmp5 = a > b;
let cmp6 = a >= b;
let cmp7 = a < b;
let cmp8 = a <= b;
let q = a;
a = 20;
let obj = {x: 5, y: 10};
let r = obj.x;
obj.y = 15;
let arr = [1, 2, 3];
let s = arr[0];
arr[1] = 99;
let t = Number("42");
let u = String(123);
let v = Boolean(0);
let w = typeof a;
let x = void a;
let y = (a, b, c);
let z = delete obj.x;
}
ArkTools.arkSteedCompileSync(basic_op);
basic_op();