Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymann committed Apr 18, 2024
1 parent 159cffb commit e1ae808
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions typescript/helloworld.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
var message = 'Hello, World!';
// create a new heading 1 element
var message = 'Hello, Typescript!';
var heading = document.createElement('h1');
heading.textContent = message;
// add the heading the document
document.body.appendChild(heading);
6 changes: 3 additions & 3 deletions typescript/helloworld.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let message: string = 'Hello, World!';
// create a new heading 1 element
let message: string = 'Hello, Typescript!';

let heading = document.createElement('h1');
heading.textContent = message;
// add the heading the document

document.body.appendChild(heading);

0 comments on commit e1ae808

Please sign in to comment.