이건 테스트 글입니다.
Codeblock
javascript
// this is javascript
const a = 1
const b = 2
const sum = () => {
return a + b
}
sum()
typescript
// this is typecript
const a: number = 1
const b: number = 2
const sum: number = () => {
return a + b
}
sum()
html
<!-- this is html -->
<div>Hello</div>
c
// this is c
int a=1;
int b=2;
function sum(){
return a + b;
}
sum();
jsx
const App = () => {
const [value, setValue] = useState(0)
return <div>Hello {value}</div>
}
vue
// this is vue
<template>
<div>Hello {{a}}</div>
</template>
<script>
export default{
setup(){
const a = ref(1);
return{
a
}
}
}
</script>
JSON
{
"string": "hello",
"number": 1,
"isValid": true,
"array": [1, 2, 3]
}