Compiler
# 優點
安裝
延伸模組
# 安裝
// Measure the distance between two points
const distanceBetween = ( p1, p2 ) => {
const dx = p1[0]-p2[0];
const dy = p1[1]-p2[1];
return Math.sqrt( dx*dx + dy*dy );
}
distanceBetween([10,10], [50,50])
# PRESENTING CODE
Windows 11 或 比較新的 10
wsl --install
# PRESENTING CODE
輸入指令👇