``query GetRepositories { repository(name: "test-bottle-app", owner: "saipraveen-a") { name parent { name } createdAt watchers {
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> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
<title>CSS Challenge - Move to External Stylesheet</title> | |
</head> | |
<body> | |
<h1>The Header</h1> | |
<p style="">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod |
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> | |
<title>HTML Challenge - Fix This Image</title> | |
</head> | |
<body> | |
<img src="https://images.unsplash.com/photo-1441974231531-c6227db76b6e?&w=400" alt="Trees in a forest"> | |
</body> |
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
<html> | |
<head> | |
<title>HTML & CSS</title> | |
<link href="css/style.css" rel="stylesheet"> | |
</head> | |
<body> | |
<header> | |
<h1>I'm learning HTML and CSS</h1> | |
</header> |
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
/* Snippet1 */ | |
header { | |
width: 100px; | |
border-color: yellow; | |
border-width: 20px; | |
border-style: solid; | |
padding: 20px; | |
margin: 20px; |
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
<html> | |
<head> | |
<title>Introduction to CSS</title> | |
</head> | |
<body> | |
<!-- | |
#42f4df | |
#f77002 | |
#13a351 | |
rgb(206, 105, 72) |
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
// classes are just syntatic sugar in Javascript. They are just objects underneath | |
class Person { | |
constructor(firstName, lastName) { | |
this.firstName = firstName; | |
this.lastName = lastName; | |
} | |
greet() { | |
return 'Hi' + firstName; | |
} |
Function Constructors were added for programmers coming from OO programming backgrounds.
Javascript also supports creating Objects using its own Prototypal Inheritance through the use of Object.create()
Objects dont create new Execution Context. Only a function invocation results in the Creation and Execution of new Execution Context.
Object.create is supported in newer browser versions. If we have to run our application in older browsers, we can instead use Polyfills (code that adds a feature that the engine may lack)
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
const names = ['John', 'Jane', 'Joe'] | |
for (let key in names) { | |
console.log(key + ": " + names[key]); // array is an object with the key being the index | |
} | |
Array.prototype.someNewProperty = 'abc'; | |
// now we get the new property someNewProperty in the output as well. | |
for (let key in names) { |
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
let a = new Number(3); | |
a; | |
a.toFixed(2); | |
Number.prototype.toFixed(2); | |
let b = new String('John'); | |
b.indexOf('o'); | |
String.prototype.indexOf('o'); |
NewerOlder