mirror of
https://github.com/github/codeql.git
synced 2026-03-24 16:36:57 +01:00
9 lines
113 B
JavaScript
9 lines
113 B
JavaScript
function dist(p) {
|
|
return Math.sqrt(p.x*p.x+p.y*p.y);
|
|
}
|
|
|
|
var point = {
|
|
x: 3,
|
|
x: 4
|
|
};
|
|
console.log(dist(point)); |