8 lines
214 B
TypeScript
8 lines
214 B
TypeScript
|
import { sayHello } from './greet';
|
||
|
|
||
|
function showHello(divName: string, name: string) {
|
||
|
const elt = document.getElementById(divName);
|
||
|
elt.innerText = sayHello(name);
|
||
|
}
|
||
|
|
||
|
showHello('greeting', 'TypeScript');
|