Skip to content
Snippets Groups Projects
Commit 1cff14c0 authored by Andrej Rasevic's avatar Andrej Rasevic
Browse files

clean up

parent 63f45415
No related branches found
No related tags found
No related merge requests found
console.log('hi')
\ No newline at end of file
{
"name": "demonodeapp",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
let sharedAdd = require('./functions').myAdd
console.log(sharedAdd(1,4))
\ No newline at end of file
function myAdd(num1, num2) {
return num1 + num2
}
function mySubtract(num1, num2) {
return num1 - num2
}
module.exports.myAdd = myAdd
module.exports.mySubtract = mySubtract
\ No newline at end of file
<!DOCTYPE html>
<html>
<body>
<script>
console.log('Hello cmsc335!')
var firstName = "Testudo"
{
let firstName = "Lenny"
console.log(firstName)
}
let middleName = "Kermit"
const lastName = "Bias"
console.log(`Hi, my name is: ${firstName} ${lastName}`)
function add(num1, num2) {
return num1 + num2
}
console.log(add(5,3))
</script>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment