//noticeable console logs
console.log('%c onFormLoad', 'background: #222; color: #bada55');
//iterating over js object
for (const key in obj) {
let value = obj[key];
{"posts":[{"id":1,"title":"hello"}],"profile":{"name":"typicode"},"swag":"overload"} |
var bla = ""; | |
function okcool(){ | |
alert("lel"); | |
} |
# plays smoke on the water with windows sounds | |
# for linux or mac: | |
# import os | |
# duration, freq = 1, 440 # 1 second, 440Hz | |
# os.system('play -nq -t alsa synth {} sine {}'.format(duration, freq)) | |
# how to play a sound in python: https://stackoverflow.com/a/16573339/6710876 | |
# original by https://gist.github.com/ianoxley/3417873 | |
# minor changes by me: 1.) 200 durations to 300. 2.) shortened sleep(0.5) to sleep(0.1) |
<template> | |
<h2>My Course Goal</h2> | |
<p> | |
{{ goal1 }} | |
</p> | |
<!-- Task 1: Output your main course goal with help of the composition API --> | |
<!-- Don't hardcode it into the template, instead hardcode it into the JS code --> | |
<h3 v-show="isCourseGoalVisible">OUTPUT COURSE GOAL</h3> | |
<!-- Task 2: Toggle (show/ hide) the goal with help of the button --> | |
<button @click="handlers.handleToggleGoalBtn">Toggle Goal</button> |