ควิซ Python: #scope

ควิซเกี่ยวกับ #scope 4 ชุด พร้อมคำอธิบายทุกคำตอบ

4 ขอบเขตตัวแปรและ global ยาก ชื่อแบบ local และ global, nonlocal, closure และกับดัก UnboundLocalError Python · ฟังก์ชัน #scope#closures#gotchas 10 ข้อ · ~8 นาที ยังไม่เริ่ม เริ่ม
1 let, const & var ง่าย Know when to use let, const or var and how each one is scoped. JavaScript · JavaScript Basics #variables#scope 10 ข้อ · ~5 นาที ยังไม่เริ่ม เริ่ม
3 Scope & Hoisting ปานกลาง Predict what happens when variables and functions are used before their declaration. JavaScript · Functions & Scope #scope#hoisting 10 ข้อ · ~6 นาที ยังไม่เริ่ม เริ่ม
5 Scope & Lifetime ปานกลาง Know where each C variable can be used and how long it lives, from blocks to globals. C · Functions & Scope #scope#lifetime 10 ข้อ · ~6 นาที ยังไม่เริ่ม เริ่ม

แท็กอื่น: