Skip to content

Commit 86552fe

Browse files
committed
Use the console.assert function in the code
1 parent 4470330 commit 86552fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const calculation = 10 + 32;
2+
const result = 40;
3+
// console.assert(calculation === result);
4+
5+
function formatAs12HourClock() {}
6+
console.log(formatAs12HourClock())
7+
console.assert(formatAs12HourClock("08:00") === "08:00 am" , `current output: ${formatAs12HourClock("08:00")} , target output: 08:00 am`);

0 commit comments

Comments
 (0)