blob: 7a5e362be7059cce2a4ba70525f30436b536cf0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
//![0]
// script.mjs
import { factorial } from "factorial.mjs"
export { factorial }
export function showCalculations(value) {
console.log(
"Call factorial() from script.js:",
factorial(value));
}
//![0]
|