var, let, const 차이점은?
-
var
는function-scoped
이고,let
,const
는block-scoped
입니다. -
function-scoped
와block-scoped
가 무슨말이냐?
/// <resources type="react" /> | |
/// <resources type="draft-js" /> | |
declare module "draft-js-plugins-editor" { | |
export type PluginsEditorProps = Draft.EditorProps | { | |
plugins: any, | |
} | |
export default class PluginsEditor | |
extends React.Component<PluginsEditorProps, Draft.EditorState> {} |
#!/bin/bash | |
if [ -f ~/Library/KeyBindings/DefaultkeyBinding.dict ]; then | |
echo "~/Library/KeyBindings/DefaultkeyBinding.dict already exists" | |
exit -1 | |
fi | |
mkdir -p ~/Library/KeyBindings | |
cat << EOF > ~/Library/KeyBindings/DefaultkeyBinding.dict | |
{ | |
"₩" = ("insertText:", "\`"); |
var
는 function-scoped
이고, let
, const
는 block-scoped
입니다.
function-scoped
와 block-scoped
가 무슨말이냐?