問題タブ [array-reverse]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
typescript - 読み取り専用タプルを逆にする
php - PHPで数字のインデックスの順序を逆にする
私のスクリプト:
20 から 0 までの $actual_index 一連の数値を出力します。
スクリプトの前のロジックに触れることなく、逆方向 (0 から 20 まで) の数字を表示する $actual_index の出力を逆にする必要があります。
$actual_index で配列逆を再度使用して、 $final_index を作成してみました:
しかし、出力が得られません。
私のコードの何が問題になっていますか? これを修正するにはどうすればよいですか? ご協力いただきありがとうございます