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
<body> | |
<script type="module" src="/main.js"></script> | |
<div> | |
Toatal Rating: | |
<span id="totalCount"> 0/5</span> | |
</div> | |
<section id="ratings"> | |
<div class="star">⭐</div> | |
<div class="star">⭐</div> | |
<div class="star">⭐</div> |
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: { | |
}, |
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; |
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> |
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); |
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 |
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 |