View let.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (1 != 2) { | |
let age = 35; | |
console.log(age); | |
//output: 35 | |
} | |
console.log(age); | |
//output: ReferenceError: age is not defined |
View const.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const password = '123456'; | |
console.log(password); | |
//output: 123456 | |
const apiKey = 45649465465; | |
console.log(apiKey); | |
//output: 45649465465 |
View var.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var income = 550; | |
console.log(income); | |
//output : 550 | |
var income = 560; | |
console.log(income); | |
//output : 560 | |
var income = income + 1; | |
console.log(income); |
View QuoteOfTheDay.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- Vue js CDN --> | |
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> | |
<!-- Axios CDN --> | |
<script src="https://unpkg.com/axios/dist/axios.min.js"></script> |
View QuoteOfTheDay.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
body { | |
background-color: #111; | |
} | |
#app { | |
font-family: "Montserrat"; | |
text-align: center; | |
color: #FFF; |
View QuoteOfTheDay.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
new Vue({ | |
el: '#app', | |
data: { | |
info: 'null', | |
author: 'null' | |
}, | |
methods: { | |
}, |