error TS5107: Option 'target=ES5' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.


!!! error TS5107: Option 'target=ES5' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts (0 errors) ====
    var globalCounter = 0;
    function incrementIdx(max: number) {
        globalCounter += 1;
        let idx = Math.floor(Math.random() * max);
        return idx;
    }
    
    var array1 = [1, 2, 3, 4, 5];
    
    array1[incrementIdx(array1.length)] **= 3;
    
    array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] **= 2;
    
    array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] ** 2;