Javascript Edabit Practice: CanvasPractice

less than 1 minute read

The code has been modified slightly and now uploaded to the site.

This was a very basic program believed to be arbitrarily made for practice and linking Javascript with HTML.

This code was created a very long time ago primarily for testing purposes.

Don’t be worried if the result appears to be empty!

<— Return Home

HowEdabitWorks.html

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>
<body>
	<script>
	function hello() {
		document.write("hello edabit.com");
	}
	</script>
</body>
</html>

<— Return Home

HowEdabitWorks.js

function hello() {
    document.write("hello edabit.com");
}

<— Return Home

Result

Open Link in New Tab

<— Return Home