โคด๏ธreturn
๐ง ๆฝๅทฅไธญ
Last updated
Was this helpful?
๐ง ๆฝๅทฅไธญ
Last updated
Was this helpful?
Was this helpful?
JS โฉ statement โฉ control flow โฉ jump โฉ return
return statement can be used only within the body of a function, using it anywhere else causes a SyntaxError.
return is affected by โ
โ ๏ธ ๆณจๆ๏ผ็จ return
ๆ๏ผไธ่ฆๅฏซๆ้ๆจฃ๏ผ
โ ้็จฎๅฏซๆณ return
ๅพ้ขๆ่ขซ่ชๅๅ ไธ ";
" ๅ่โ
โ ๅปบ่ญฐๅฏซๆ้ๆจฃ๏ผ
return
a + b;
return; // ่ชๅๅ ไธใ;ใๅ่โ๏ธ
a + b;
return (
a + b
);