0
can you help me how can I solve this lesson , in ES6 4 quetiones ?
Fill in the blanks to import the following from "util/calc.js": export const hit = (x, y, z) => { return x * y + z / 2; } export const degree = 50; * calc from "util/calc"; calc.hit(1, 2, calc.degree);
6 ответов
+ 7
import
as
+ 3
import * as
+ 1
Fill in the blanks to import the following from "util/calc.js":
export const hit = (x, y, z) => {
return x * y + z / 2;
}
export const degree = 50;
import
*
as
calc from "util/calc";
calc.hit(1, 2, calc.degree);
0
If you want to import hit
Import {hit} from "util/calc.js"
If it's degree
Import {degree} from "util/calc.js"
It's a good standard of importing
0
import
as
0
Fill in the blanks to import the following from "util/calc.js":
export const hit = (x, y, z) => {
return x * y + z / 2;
}
export const degree = 50;
JS
.......... *..........
calc from "util/calc";
calc.hit(1, 2, calc.degree);
answeris :- import * as