console.log(a);
if (true) {
var a = 10;
console.log(a);
}
console.log(b);
if (false) {
var b = 20;
console.log(b);
This file contains hidden or 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
| import React from 'react'; | |
| import { | |
| SafeAreaView, | |
| Text, | |
| } from 'react-native'; | |
| const App = () => { | |
| return ( | |
| <SafeAreaView> | |
| <Text>Hello World</Text> |
This file contains hidden or 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
| [[redirects]] | |
| from = "/*" | |
| to = "/index.html" | |
| status = 200 |
Semantic Commit messages: https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716
This file contains hidden or 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 greeting=function(name){ | |
| return 'Hello '+name; | |
| }('John'); | |
| console.log(greeting); | |
| var firstname="John"; |
This file contains hidden or 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 greeting=function(name){ | |
| return 'Hello '+name; | |
| }('John'); | |
| console.log(greeting); | |
| var firstname="John"; |
This file contains hidden or 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
| //expressions and conditionals | |
| class App extends Component { | |
| //method of class | |
| foo = () => 'Bars'; | |
| render() { | |
| const name = 'John Doe'; | |
| const foo = () => 'Bar'; | |
| const loading = false; | |
| const showName = false; |
This file contains hidden or 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> | |
| <head> | |
| <meta charset="utf-8"> | |
| <!-- description meta-tags--> | |
| <!-- typically upto 160 characters--> | |
| <meta name="description" content="This is a website that teaches HTML & CSS"> | |
| <!--meta tags for responsiveness --> | |
| <meta name="viewport" content="width=device-width,initial-scale=1"> |
NewerOlder