├── 5 - js ├── dom │ └── dom-01 │ │ ├── styles.css │ │ ├── script.js │ │ └── index.html ├── ES6 │ ├── .gitignore │ ├── How to use.txt │ ├── package.json │ ├── index.html │ ├── Module Exercise Problem.html │ └── index.js └── JS-Basics │ ├── instruction.md │ ├── index.html │ └── index.js ├── 3 - css ├── css-basics │ ├── styles.css │ └── index.html ├── css-one │ ├── css │ │ └── styles.css │ ├── design │ │ ├── mobile-design.jpg │ │ ├── desktop-design.jpg │ │ └── desktop-preview.jpg │ ├── index.html │ └── style-guide.md ├── css-two │ ├── css │ │ └── styles.css │ ├── images │ │ ├── hero-mobile.jpg │ │ ├── hero-desktop.jpg │ │ ├── icon-arrow.svg │ │ ├── icon-error.svg │ │ ├── bg-pattern-desktop.svg │ │ └── logo.svg │ ├── design │ │ ├── active-states.jpg │ │ ├── mobile-design.jpg │ │ ├── desktop-design.jpg │ │ └── desktop-preview.jpg │ ├── index.html │ └── style-guide.md ├── css-one-challenge │ ├── css │ │ └── styles.css │ ├── design │ │ ├── mobile-design.jpg │ │ ├── desktop-design.jpg │ │ ├── desktop-preview.jpg │ │ ├── mobile-error-state.jpg │ │ └── desktop-hover-error-states.jpg │ ├── images │ │ ├── illustration-dashboard.png │ │ └── logo.svg │ ├── index.html │ └── style-guide.md ├── css-two-challenge │ ├── css │ │ └── styles.css │ ├── design │ │ ├── active-states.jpg │ │ ├── mobile-design.jpg │ │ ├── desktop-design.jpg │ │ ├── desktop-preview.jpg │ │ └── mobile-navigation.jpg │ ├── images │ │ ├── logo.svg │ │ └── illustration-devices.svg │ ├── index.html │ └── style-guide.md ├── css-dom-challenge │ ├── .gitignore │ ├── design │ │ ├── active-states.jpg │ │ ├── mobile-design.jpg │ │ ├── desktop-design.jpg │ │ └── desktop-preview.jpg │ ├── images │ │ ├── bg-intro-desktop.png │ │ ├── bg-intro-mobile.png │ │ └── icon-error.svg │ ├── index.html │ └── style-guide.md └── css-intermediate-challenge │ ├── images │ ├── logo-hp.png │ ├── logo-ibm.png │ ├── logo-google.png │ ├── image-computer.png │ ├── image-devices.png │ ├── logo-microsoft.png │ ├── bg-header-desktop.png │ ├── bg-header-mobile.png │ ├── logo-vector-graphics.png │ ├── logo.svg │ ├── icon-facebook.svg │ ├── icon-twitter.svg │ ├── icon-text.svg │ ├── icon-instagram.svg │ ├── icon-blacklist.svg │ └── icon-preview.svg │ ├── design │ ├── active-states.jpg │ ├── desktop-design.jpg │ ├── mobile-design.jpg │ └── desktop-preview.jpg │ ├── .gitignore │ ├── style-guide.md │ └── index.html ├── 4 - masterclass ├── .gitignore ├── design │ ├── mobile-design.jpg │ ├── desktop-design.jpg │ └── desktop-preview.jpg ├── images │ ├── icon-email.svg │ ├── bg-footer-top-mobile.svg │ ├── icon-phone.svg │ ├── bg-footer-top-desktop.svg │ ├── bg-section-bottom-mobile-1.svg │ ├── bg-section-top-mobile-1.svg │ ├── bg-section-top-desktop-1.svg │ ├── bg-section-bottom-mobile-2.svg │ ├── bg-section-bottom-desktop-1.svg │ ├── bg-section-top-mobile-2.svg │ ├── bg-section-top-desktop-2.svg │ ├── bg-section-bottom-desktop-2.svg │ ├── icon-messages.svg │ ├── icon-communities.svg │ ├── screen-mockups.svg │ ├── logo.svg │ ├── illustration-grow-together.svg │ └── illustration-your-users.svg ├── index.html └── style-guide.md ├── 6 - react ├── news-demo │ ├── src │ │ ├── Constants.js │ │ ├── setupTests.js │ │ ├── App.test.js │ │ ├── index.css │ │ ├── index.js │ │ ├── App.css │ │ ├── NewsCard.js │ │ ├── App.js │ │ ├── newscard.module.css │ │ ├── logo.svg │ │ └── serviceWorker.js │ ├── public │ │ ├── robots.txt │ │ ├── favicon.ico │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── index.html │ ├── README.md │ ├── .gitignore │ └── package.json └── assignment-react-1 │ └── README.md ├── 2 - git └── Git_basic_commands.pdf ├── 0 - misc ├── slides │ ├── js │ │ ├── JS-Intro-01.pptx │ │ ├── dom-basics-01.pptx │ │ └── dom-basics-02.pptx │ ├── css │ │ ├── 01 css-syntax.pdf │ │ ├── css-basics-01.pptx │ │ ├── css-basics-02.pptx │ │ ├── css-basics-03.pptx │ │ └── 02 css-selectors.pdf │ ├── access101 - The missing parts.pptx │ ├── react │ │ └── intro-to-react-access101.pptx │ └── intro to web app │ │ └── Introduction to Web Development.pdf ├── day-plans │ ├── access101_-_day1.pdf │ ├── access101_-_day10.pdf │ ├── access101_-_day2.pdf │ ├── access101_-_day3.pdf │ ├── access101_-_day4.pdf │ ├── access101_-_day5.pdf │ ├── access101_-_day6.pdf │ ├── access101_-_day7.pdf │ ├── access101_-_day8.pdf │ ├── access101_-_day9.pdf │ ├── access101_-_day_0.pdf │ ├── access101_-_day11x.pdf │ ├── access101_-_day12x.pdf │ └── access101_-_day13x.pdf └── access-roadmap │ ├── access-roadmap-v1.png │ └── access-roadmap-v2.png ├── .gitignore ├── 1 - html ├── html-forms │ └── index.html ├── html-basics │ └── index.html ├── html-tables │ └── index.html └── html-markup │ ├── html-markup-demo │ └── index.html │ └── html-markup-todo │ └── index.html └── README.md /5 - js/dom/dom-01/styles.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-basics/styles.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-one/css/styles.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-two/css/styles.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4 - masterclass/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /3 - css/css-one-challenge/css/styles.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-two-challenge/css/styles.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-dom-challenge/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /6 - react/news-demo/src/Constants.js: -------------------------------------------------------------------------------- 1 | export const API_URL = "put-your-url"; 2 | -------------------------------------------------------------------------------- /2 - git/Git_basic_commands.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/2 - git/Git_basic_commands.pdf -------------------------------------------------------------------------------- /6 - react/news-demo/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /5 - js/ES6/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # node.js 3 | # 4 | node_modules/ 5 | npm-debug.log 6 | yarn-error.log 7 | package-lock.json 8 | -------------------------------------------------------------------------------- /0 - misc/slides/js/JS-Intro-01.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/slides/js/JS-Intro-01.pptx -------------------------------------------------------------------------------- /0 - misc/slides/css/01 css-syntax.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/slides/css/01 css-syntax.pdf -------------------------------------------------------------------------------- /0 - misc/slides/css/css-basics-01.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/slides/css/css-basics-01.pptx -------------------------------------------------------------------------------- /0 - misc/slides/css/css-basics-02.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/slides/css/css-basics-02.pptx -------------------------------------------------------------------------------- /0 - misc/slides/css/css-basics-03.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/slides/css/css-basics-03.pptx -------------------------------------------------------------------------------- /0 - misc/slides/js/dom-basics-01.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/slides/js/dom-basics-01.pptx -------------------------------------------------------------------------------- /0 - misc/slides/js/dom-basics-02.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/slides/js/dom-basics-02.pptx -------------------------------------------------------------------------------- /3 - css/css-two/images/hero-mobile.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-two/images/hero-mobile.jpg -------------------------------------------------------------------------------- /6 - react/news-demo/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/6 - react/news-demo/public/favicon.ico -------------------------------------------------------------------------------- /6 - react/news-demo/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/6 - react/news-demo/public/logo192.png -------------------------------------------------------------------------------- /6 - react/news-demo/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/6 - react/news-demo/public/logo512.png -------------------------------------------------------------------------------- /0 - misc/day-plans/access101_-_day1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/day-plans/access101_-_day1.pdf -------------------------------------------------------------------------------- /0 - misc/day-plans/access101_-_day10.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/day-plans/access101_-_day10.pdf -------------------------------------------------------------------------------- /0 - misc/day-plans/access101_-_day2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/day-plans/access101_-_day2.pdf -------------------------------------------------------------------------------- /0 - misc/day-plans/access101_-_day3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/day-plans/access101_-_day3.pdf -------------------------------------------------------------------------------- /0 - misc/day-plans/access101_-_day4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/day-plans/access101_-_day4.pdf -------------------------------------------------------------------------------- /0 - misc/day-plans/access101_-_day5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/day-plans/access101_-_day5.pdf -------------------------------------------------------------------------------- /0 - misc/day-plans/access101_-_day6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/day-plans/access101_-_day6.pdf -------------------------------------------------------------------------------- /0 - misc/day-plans/access101_-_day7.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/day-plans/access101_-_day7.pdf -------------------------------------------------------------------------------- /0 - misc/day-plans/access101_-_day8.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/day-plans/access101_-_day8.pdf -------------------------------------------------------------------------------- /0 - misc/day-plans/access101_-_day9.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/day-plans/access101_-_day9.pdf -------------------------------------------------------------------------------- /0 - misc/day-plans/access101_-_day_0.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/day-plans/access101_-_day_0.pdf -------------------------------------------------------------------------------- /0 - misc/slides/css/02 css-selectors.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/slides/css/02 css-selectors.pdf -------------------------------------------------------------------------------- /3 - css/css-one/design/mobile-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-one/design/mobile-design.jpg -------------------------------------------------------------------------------- /3 - css/css-two/design/active-states.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-two/design/active-states.jpg -------------------------------------------------------------------------------- /3 - css/css-two/design/mobile-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-two/design/mobile-design.jpg -------------------------------------------------------------------------------- /3 - css/css-two/images/hero-desktop.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-two/images/hero-desktop.jpg -------------------------------------------------------------------------------- /4 - masterclass/design/mobile-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/4 - masterclass/design/mobile-design.jpg -------------------------------------------------------------------------------- /0 - misc/day-plans/access101_-_day11x.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/day-plans/access101_-_day11x.pdf -------------------------------------------------------------------------------- /0 - misc/day-plans/access101_-_day12x.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/day-plans/access101_-_day12x.pdf -------------------------------------------------------------------------------- /0 - misc/day-plans/access101_-_day13x.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/day-plans/access101_-_day13x.pdf -------------------------------------------------------------------------------- /3 - css/css-one/design/desktop-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-one/design/desktop-design.jpg -------------------------------------------------------------------------------- /3 - css/css-one/design/desktop-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-one/design/desktop-preview.jpg -------------------------------------------------------------------------------- /3 - css/css-two/design/desktop-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-two/design/desktop-design.jpg -------------------------------------------------------------------------------- /3 - css/css-two/design/desktop-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-two/design/desktop-preview.jpg -------------------------------------------------------------------------------- /4 - masterclass/design/desktop-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/4 - masterclass/design/desktop-design.jpg -------------------------------------------------------------------------------- /4 - masterclass/design/desktop-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/4 - masterclass/design/desktop-preview.jpg -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # node.js 3 | # 4 | node_modules/ 5 | npm-debug.log 6 | yarn-error.log 7 | package-lock.json 8 | 9 | # Mac 10 | .DS_Store -------------------------------------------------------------------------------- /0 - misc/access-roadmap/access-roadmap-v1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/access-roadmap/access-roadmap-v1.png -------------------------------------------------------------------------------- /0 - misc/access-roadmap/access-roadmap-v2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/access-roadmap/access-roadmap-v2.png -------------------------------------------------------------------------------- /0 - misc/slides/access101 - The missing parts.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/slides/access101 - The missing parts.pptx -------------------------------------------------------------------------------- /3 - css/css-dom-challenge/design/active-states.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-dom-challenge/design/active-states.jpg -------------------------------------------------------------------------------- /3 - css/css-dom-challenge/design/mobile-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-dom-challenge/design/mobile-design.jpg -------------------------------------------------------------------------------- /3 - css/css-one-challenge/design/mobile-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-one-challenge/design/mobile-design.jpg -------------------------------------------------------------------------------- /3 - css/css-two-challenge/design/active-states.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-two-challenge/design/active-states.jpg -------------------------------------------------------------------------------- /3 - css/css-two-challenge/design/mobile-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-two-challenge/design/mobile-design.jpg -------------------------------------------------------------------------------- /0 - misc/slides/react/intro-to-react-access101.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/slides/react/intro-to-react-access101.pptx -------------------------------------------------------------------------------- /3 - css/css-dom-challenge/design/desktop-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-dom-challenge/design/desktop-design.jpg -------------------------------------------------------------------------------- /3 - css/css-dom-challenge/design/desktop-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-dom-challenge/design/desktop-preview.jpg -------------------------------------------------------------------------------- /3 - css/css-dom-challenge/images/bg-intro-desktop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-dom-challenge/images/bg-intro-desktop.png -------------------------------------------------------------------------------- /3 - css/css-dom-challenge/images/bg-intro-mobile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-dom-challenge/images/bg-intro-mobile.png -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/logo-hp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-intermediate-challenge/images/logo-hp.png -------------------------------------------------------------------------------- /3 - css/css-one-challenge/design/desktop-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-one-challenge/design/desktop-design.jpg -------------------------------------------------------------------------------- /3 - css/css-one-challenge/design/desktop-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-one-challenge/design/desktop-preview.jpg -------------------------------------------------------------------------------- /3 - css/css-two-challenge/design/desktop-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-two-challenge/design/desktop-design.jpg -------------------------------------------------------------------------------- /3 - css/css-two-challenge/design/desktop-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-two-challenge/design/desktop-preview.jpg -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/logo-ibm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-intermediate-challenge/images/logo-ibm.png -------------------------------------------------------------------------------- /3 - css/css-one-challenge/design/mobile-error-state.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-one-challenge/design/mobile-error-state.jpg -------------------------------------------------------------------------------- /3 - css/css-two-challenge/design/mobile-navigation.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-two-challenge/design/mobile-navigation.jpg -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/logo-google.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-intermediate-challenge/images/logo-google.png -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/design/active-states.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-intermediate-challenge/design/active-states.jpg -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/design/desktop-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-intermediate-challenge/design/desktop-design.jpg -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/design/mobile-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-intermediate-challenge/design/mobile-design.jpg -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/image-computer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-intermediate-challenge/images/image-computer.png -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/image-devices.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-intermediate-challenge/images/image-devices.png -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/logo-microsoft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-intermediate-challenge/images/logo-microsoft.png -------------------------------------------------------------------------------- /3 - css/css-one-challenge/images/illustration-dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-one-challenge/images/illustration-dashboard.png -------------------------------------------------------------------------------- /5 - js/ES6/How to use.txt: -------------------------------------------------------------------------------- 1 | Navigate inside "ES6 folder 2 | Run "sudo npm install" command to install dependencies 3 | Run "npm start" to run the development server (lite-server) -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/design/desktop-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-intermediate-challenge/design/desktop-preview.jpg -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/bg-header-desktop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-intermediate-challenge/images/bg-header-desktop.png -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/bg-header-mobile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-intermediate-challenge/images/bg-header-mobile.png -------------------------------------------------------------------------------- /3 - css/css-one-challenge/design/desktop-hover-error-states.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-one-challenge/design/desktop-hover-error-states.jpg -------------------------------------------------------------------------------- /3 - css/css-two/images/icon-arrow.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /0 - misc/slides/intro to web app/Introduction to Web Development.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/0 - misc/slides/intro to web app/Introduction to Web Development.pdf -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/logo-vector-graphics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeone-github/access/HEAD/3 - css/css-intermediate-challenge/images/logo-vector-graphics.png -------------------------------------------------------------------------------- /5 - js/dom/dom-01/script.js: -------------------------------------------------------------------------------- 1 | function changeName() { 2 | // step 1 3 | var domElement = document.getElementById("name"); 4 | 5 | // step 2 6 | domElement.innerHTML = "Salman"; 7 | } 8 | -------------------------------------------------------------------------------- /6 - react/news-demo/README.md: -------------------------------------------------------------------------------- 1 | # News app demo 2 | 3 | - cd news-demo 4 | - npm install 5 | - npm start 6 | 7 | Note - Before running please update API_URL in Contants.js. (get it from newsapi.org) 8 | 9 | -------------------------------------------------------------------------------- /3 - css/css-two-challenge/images/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /5 - js/JS-Basics/instruction.md: -------------------------------------------------------------------------------- 1 | ### Steps to Run 2 | 3 | 1. Install Live Server if you don't have. 4 | 2. Click on `Go Live` option available on footer menu of VS Code. 5 | 3. Go to Browser, Open the console to see the output. 6 | 7 | #### Happy Coding👨🏻‍💻 -------------------------------------------------------------------------------- /3 - css/css-dom-challenge/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | DOM - CSS 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /6 - react/news-demo/src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom/extend-expect'; 6 | -------------------------------------------------------------------------------- /3 - css/css-dom-challenge/images/icon-error.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4 - masterclass/images/icon-email.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-one-challenge/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /1 - html/html-forms/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | HTML-Forms 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /4 - masterclass/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Masterclass-1 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /1 - html/html-basics/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | HTML-Basics 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /1 - html/html-tables/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | HTML-Tables 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /3 - css/css-two-challenge/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /6 - react/news-demo/src/App.test.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { render } from '@testing-library/react'; 3 | import App from './App'; 4 | 5 | test('renders learn react link', () => { 6 | const { getByText } = render(); 7 | const linkElement = getByText(/learn react/i); 8 | expect(linkElement).toBeInTheDocument(); 9 | }); 10 | -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-one-challenge/images/logo.svg: -------------------------------------------------------------------------------- 1 | PING . -------------------------------------------------------------------------------- /1 - html/html-markup/html-markup-demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | HTML-Markup-Demo 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /1 - html/html-markup/html-markup-todo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | HTML-Markup-todo 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /5 - js/ES6/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "es6", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1", 8 | "start": "lite-server" 9 | }, 10 | "author": "", 11 | "license": "ISC", 12 | "devDependencies": { 13 | "lite-server": "^2.5.4" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /3 - css/css-one/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | CSS-One 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /3 - css/css-two/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | CSS-Two 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /3 - css/css-basics/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | CSS-Basics 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /5 - js/dom/dom-01/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Dom 8 | 9 | 10 |

Tajammul

11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /6 - react/news-demo/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /5 - js/JS-Basics/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 11 |

Introduction to JS💚!
Open Browser console to see the Output

12 | 13 | -------------------------------------------------------------------------------- /6 - react/news-demo/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /3 - css/css-two/images/icon-error.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4 - masterclass/images/bg-footer-top-mobile.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4 - masterclass/images/icon-phone.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/icon-facebook.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4 - masterclass/images/bg-footer-top-desktop.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /5 - js/ES6/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Learning TypeScript 9 | 10 | 11 | 12 |

Access

13 |

ES6

14 |

Let's Learn ES6 Concept

15 |

16 | 17 | -------------------------------------------------------------------------------- /6 - react/assignment-react-1/README.md: -------------------------------------------------------------------------------- 1 | # assignment-react-1 2 | 3 | ### Build a simple webapp using reactjs and breaking bad api 4 | 5 | - Create a new react project (either locally or on codesandbox) 6 | - Create reusable card component 7 | - Use fetch to call breaking bad api (url - https://www.breakingbadapi.com/api/characters) 8 | - Store the response in state 9 | - Map that response to the Card component 10 | - Push it if you've developed it locally, deploy to netlify, and share link 11 | - If you have developed on codesandbox then share the link -------------------------------------------------------------------------------- /4 - masterclass/images/bg-section-bottom-mobile-1.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4 - masterclass/images/bg-section-top-mobile-1.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/icon-twitter.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4 - masterclass/images/bg-section-top-desktop-1.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-one/style-guide.md: -------------------------------------------------------------------------------- 1 | # Front-end Style Guide 2 | 3 | ## Layout 4 | 5 | The designs were created to the following widths: 6 | 7 | - Mobile: 375px 8 | - Desktop: 1440px 9 | 10 | ## Colors 11 | 12 | ### Primary 13 | 14 | - Cyan: hsl(179, 62%, 43%) 15 | - Bright Yellow: hsl(71, 73%, 54%) 16 | 17 | ### Neutral 18 | 19 | - Light Gray: hsl(204, 43%, 93%) 20 | - Grayish Blue: hsl(218, 22%, 67%) 21 | 22 | ## Typography 23 | 24 | ### Body Copy 25 | 26 | - Font size: 16px 27 | 28 | ### Font 29 | 30 | - Family: [Karla](https://fonts.google.com/specimen/Karla) 31 | - Weights: 400, 700 -------------------------------------------------------------------------------- /6 - react/news-demo/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import './index.css'; 4 | import App from './App'; 5 | import * as serviceWorker from './serviceWorker'; 6 | 7 | ReactDOM.render( 8 | 9 | 10 | , 11 | document.getElementById('root') 12 | ); 13 | 14 | // If you want your app to work offline and load faster, you can change 15 | // unregister() to register() below. Note this comes with some pitfalls. 16 | // Learn more about service workers: https://bit.ly/CRA-PWA 17 | serviceWorker.unregister(); 18 | -------------------------------------------------------------------------------- /4 - masterclass/images/bg-section-bottom-mobile-2.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/.gitignore: -------------------------------------------------------------------------------- 1 | # Avoid accidental Sketch file upload 2 | ############################################### 3 | ## Please do not remove line 5 - thanks! 🙂 ## 4 | ############################################### 5 | *.sketch 6 | 7 | # Avoid accidental XD or Figma upload if you convert the design file 8 | ####################################################### 9 | ## Please do not remove lines 11 and 12 - thanks! 🙂 ## 10 | ####################################################### 11 | *.xd 12 | *.fig 13 | 14 | # Avoid your project being littered with annoying .DS_Store files! 15 | .DS_Store 16 | -------------------------------------------------------------------------------- /4 - masterclass/images/bg-section-bottom-desktop-1.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4 - masterclass/images/bg-section-top-mobile-2.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4 - masterclass/images/bg-section-top-desktop-2.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /6 - react/news-demo/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /4 - masterclass/images/bg-section-bottom-desktop-2.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-dom-challenge/style-guide.md: -------------------------------------------------------------------------------- 1 | # Front-end Style Guide 2 | 3 | ## Layout 4 | 5 | The designs were created to the following widths: 6 | 7 | - Mobile: 375px 8 | - Desktop: 1440px 9 | 10 | ## Colors 11 | 12 | ### Primary 13 | 14 | - Red: hsl(0, 100%, 74%) 15 | - Green: hsl(154, 59%, 51%) 16 | 17 | ### Accent 18 | 19 | - Blue: hsl(248, 32%, 49%) 20 | 21 | ### Neutral 22 | 23 | - Dark Blue: hsl(249, 10%, 26%) 24 | - Grayish Blue: hsl(246, 25%, 77%) 25 | 26 | ## Typography 27 | 28 | ### Body Copy 29 | 30 | - Font size: 16px 31 | 32 | ### Font 33 | 34 | - Family: [Poppins](https://fonts.google.com/specimen/Poppins) 35 | - Weights: 400, 500, 600, 700 36 | -------------------------------------------------------------------------------- /3 - css/css-two/style-guide.md: -------------------------------------------------------------------------------- 1 | # Front-end Style Guide 2 | 3 | ## Layout 4 | 5 | The designs were created to the following widths: 6 | 7 | - Mobile: 375px 8 | - Desktop: 1440px 9 | 10 | ## Colors 11 | 12 | ### Primary 13 | 14 | - Desaturated Red: hsl(0, 36%, 70%) 15 | - Soft Red: hsl(0, 93%, 68%) 16 | 17 | ### Neutral 18 | 19 | - Dark Grayish Red: hsl(0, 6%, 24%) 20 | 21 | ### Gradients 22 | 23 | - Linear, 135deg, from hsl(0, 0%, 100%), to hsl(0, 100%, 98%) 24 | - Linear, 135deg, from hsl(0, 80%, 86%), to hsl(0, 74%, 74%) 25 | 26 | ## Typography 27 | 28 | ### Body Copy 29 | 30 | - Font size: 16px 31 | 32 | ### Font 33 | 34 | - Family: [Josefin Sans](https://fonts.google.com/specimen/Josefin+Sans) 35 | - Weights: 300, 400, 600 36 | -------------------------------------------------------------------------------- /6 - react/news-demo/src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | } 4 | 5 | .App-logo { 6 | height: 40vmin; 7 | pointer-events: none; 8 | } 9 | 10 | @media (prefers-reduced-motion: no-preference) { 11 | .App-logo { 12 | animation: App-logo-spin infinite 20s linear; 13 | } 14 | } 15 | 16 | .App-header { 17 | background-color: #282c34; 18 | min-height: 100vh; 19 | display: flex; 20 | flex-direction: column; 21 | align-items: center; 22 | justify-content: center; 23 | font-size: calc(10px + 2vmin); 24 | color: white; 25 | } 26 | 27 | .App-link { 28 | color: #61dafb; 29 | } 30 | 31 | @keyframes App-logo-spin { 32 | from { 33 | transform: rotate(0deg); 34 | } 35 | to { 36 | transform: rotate(360deg); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /3 - css/css-two/images/bg-pattern-desktop.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-two-challenge/style-guide.md: -------------------------------------------------------------------------------- 1 | # Front-end Style Guide 2 | 3 | ## Layout 4 | 5 | The designs were created to the following widths: 6 | 7 | - Mobile: 375px 8 | - Desktop: 1440px 9 | 10 | ## Colors 11 | 12 | ### Primary 13 | 14 | - Red: hsl(0, 100%, 68%) 15 | 16 | ### Neutral 17 | 18 | - Very Dark Blue: hsl(230, 29%, 20%) 19 | - Dark Grayish Blue: hsl(230, 11%, 40%) 20 | - Grayish Blue: hsl(231, 7%, 65%) 21 | - Light Grayish Blue: hsl(207, 33%, 95%) 22 | 23 | ## Typography 24 | 25 | ### Body Copy 26 | 27 | - Font size: 18px 28 | 29 | ### Headings, Call-to-actions, Navigation 30 | 31 | - Family: [Barlow Condensed](https://fonts.google.com/specimen/Barlow+Condensed) 32 | - Weights: 400, 700 33 | 34 | ### Body 35 | 36 | - Family: [Barlow](https://fonts.google.com/specimen/Barlow) 37 | - Weights: 400 38 | -------------------------------------------------------------------------------- /6 - react/news-demo/src/NewsCard.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import styles from "./newscard.module.css"; 3 | 4 | const NewsCard = ({ data }) => { 5 | return ( 6 |
7 |

{data.title}

8 |
9 | thumbnail 14 |

{data.description}

15 |
16 |
17 |

Source - {data.source.name}

18 |

Author - {data.author}

19 |
20 |
21 | ); 22 | }; 23 | 24 | export default NewsCard; 25 | -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/icon-text.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4 - masterclass/style-guide.md: -------------------------------------------------------------------------------- 1 | # Front-end Style Guide 2 | 3 | ## Layout 4 | 5 | The designs were created to the following widths: 6 | 7 | - Mobile: 375px 8 | - Desktop: 1440px 9 | 10 | ## Colors 11 | 12 | ### Primary 13 | 14 | - Pink: hsl(322, 100%, 66%) 15 | 16 | ### Neutral 17 | 18 | - Very Dark Cyan: hsl(192, 100%, 9%) 19 | - Very Pale Blue: hsl(207, 100%, 98%) 20 | 21 | ## Typography 22 | 23 | ### Headings 24 | 25 | - Family: [Poppins](https://fonts.google.com/specimen/Poppins) 26 | - Weights: 700 27 | 28 | ### Body 29 | 30 | - Family: [Open Sans](https://fonts.google.com/specimen/Open+Sans) 31 | - Weights: 400, 600, 700 32 | 33 | ## Icons 34 | 35 | For the social icons, you can use a font icon library. Some suggestions can be found below: 36 | 37 | - [Font Awesome](https://fontawesome.com/) 38 | - [IcoMoon](https://icomoon.io/) 39 | - [Ionicons](https://ionicons.com/) -------------------------------------------------------------------------------- /6 - react/news-demo/src/App.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import NewsCard from "./NewsCard"; 3 | 4 | import { API_URL } from "./Constants"; 5 | 6 | // Parent component 7 | class App extends React.Component { 8 | state = { 9 | feeds: [] 10 | }; 11 | 12 | fetchHeadlines = () => { 13 | fetch(API_URL, { 14 | method: "GET" 15 | }) 16 | .then((data) => data.json()) 17 | .then((response) => this.setState({ feeds: response.articles })) 18 | .catch((error) => console.log(error)); 19 | }; 20 | 21 | componentDidMount() { 22 | this.fetchHeadlines(); 23 | } 24 | 25 | render() { 26 | return ( 27 |
28 | {this.state.feeds.length > 0 ? this.state.feeds.map((obj) => ( 29 | 30 | )) :

Loading....

} 31 | 32 |
33 | ); 34 | } 35 | } 36 | 37 | export default App; 38 | -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/style-guide.md: -------------------------------------------------------------------------------- 1 | # Front-end Style Guide 2 | 3 | ## Layout 4 | 5 | The designs were created to the following widths: 6 | 7 | - Mobile: 375px 8 | - Desktop: 1440px 9 | 10 | ## Colors 11 | 12 | ### Primary 13 | 14 | - Strong Cyan: hsl(171, 66%, 44%) 15 | - Light Blue: hsl(233, 100%, 69%) 16 | 17 | ### Neutral 18 | 19 | - Dark Grayish Blue: hsl(210, 10%, 33%) 20 | - Grayish Blue: hsl(201, 11%, 66%) 21 | 22 | ## Typography 23 | 24 | ### Body Copy 25 | 26 | - Font size: 18px 27 | 28 | ### Fonts 29 | 30 | - Family: [Bai Jamjuree](https://fonts.google.com/specimen/Bai+Jamjuree) 31 | - Weights: 400, 600 32 | 33 | ## Icons 34 | 35 | For the social icons, you can use the SVGs provided or a font icon library. Some font icon library suggestions can be found below: 36 | 37 | - [Font Awesome](https://fontawesome.com) 38 | - [IcoMoon](https://icomoon.io) 39 | - [Ionicons](https://ionicons.com) -------------------------------------------------------------------------------- /6 - react/news-demo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "news-demo", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^4.2.4", 7 | "@testing-library/react": "^9.3.2", 8 | "@testing-library/user-event": "^7.1.2", 9 | "react": "^16.13.1", 10 | "react-dom": "^16.13.1", 11 | "react-scripts": "3.4.3" 12 | }, 13 | "scripts": { 14 | "start": "react-scripts start", 15 | "build": "react-scripts build", 16 | "test": "react-scripts test", 17 | "eject": "react-scripts eject" 18 | }, 19 | "eslintConfig": { 20 | "extends": "react-app" 21 | }, 22 | "browserslist": { 23 | "production": [ 24 | ">0.2%", 25 | "not dead", 26 | "not op_mini all" 27 | ], 28 | "development": [ 29 | "last 1 chrome version", 30 | "last 1 firefox version", 31 | "last 1 safari version" 32 | ] 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /3 - css/css-one-challenge/style-guide.md: -------------------------------------------------------------------------------- 1 | # Front-end Style Guide 2 | 3 | ## Layout 4 | 5 | The designs were created to the following widths: 6 | 7 | - Mobile: 375px 8 | - Desktop: 1440px 9 | 10 | ## Colors 11 | 12 | ### Primary 13 | 14 | - Blue: hsl(223, 87%, 63%) 15 | 16 | ### Secondary 17 | 18 | - Pale Blue: hsl(223, 100%, 88%) 19 | - Light Red: hsl(354, 100%, 66%) 20 | 21 | ### Neutral 22 | 23 | - Gray: hsl(0, 0%, 59%) 24 | - Very Dark Blue: hsl(209, 33%, 12%) 25 | 26 | ## Typography 27 | 28 | ### Body Copy 29 | 30 | - Font size: 20px 31 | 32 | ### Fonts 33 | 34 | - Family: [Libre Franklin](https://fonts.google.com/specimen/Libre+Franklin) 35 | - Weights: 300, 600, 700 36 | 37 | ## Icons 38 | 39 | For the social icons, you can use a font icon library. Some suggestions can be found below: 40 | 41 | - [Font Awesome](https://fontawesome.com) 42 | - [IcoMoon](https://icomoon.io) 43 | - [Ionicons](https://ionicons.com) -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # access 2 | Access - Access is an initiative started by a bunch of professionals from various disciplines (engineering/education/finance) with only one goal- "Make technology education accessible in rural areas of India". This repo contains the content related to access bootcamp. 3 | 4 | 5 | 6 | ### Author 7 | 8 | - Salman Khan 9 | - Tajammul Pasha 10 | 11 | ### Show your support 🤝. 12 | 13 | Give a ⭐️ if this helped you! 14 | 15 | 16 | ### Follow us 17 | 18 | Twitter: 19 | 20 | [@salmanaleemkhan](https://twitter.com/salmanaleemkhan)
21 | [@Tajammul1996](https://twitter.com/Tajammul1996)
22 | [@KarthikTabjul](https://twitter.com/KarthikTabjul) 23 | 24 | *We 💚 to help you , if you have any doubts related to any topics listed under this repository, because what we believe is 25 | `Hands that serve are holier than the lips that pray!`* 26 | 27 | ### Happy Coding!👨🏻‍💻 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /6 - react/news-demo/src/newscard.module.css: -------------------------------------------------------------------------------- 1 | .container { 2 | box-sizing: border-box; 3 | width: 70vw; 4 | background-color: rgb(255, 255, 255); 5 | padding: 5px 10px; 6 | border-radius: 5px; 7 | margin: 15px auto; 8 | -webkit-box-shadow: -1px -1px 5px 8px rgba(31, 31, 31, 0.08); 9 | -moz-box-shadow: -1px -1px 5px 8px rgba(31, 31, 31, 0.08); 10 | box-shadow: -1px -1px 5px 8px rgba(31, 31, 31, 0.08); 11 | } 12 | 13 | .thumbnail { 14 | width: 100px; 15 | height: 100px; 16 | border-radius: 3px; 17 | } 18 | 19 | .title { 20 | font-weight: bold; 21 | color: #4e4e4e; 22 | } 23 | 24 | .thumbnailDescriptionWrapper { 25 | display: flex; 26 | width: 100%; 27 | justify-content: space-between; 28 | } 29 | 30 | .description { 31 | margin-left: 10px; 32 | } 33 | 34 | .authorSourceWrapper { 35 | display: flex; 36 | justify-content: space-between; 37 | color: #8b8686; 38 | } 39 | -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/icon-instagram.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/icon-blacklist.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/images/icon-preview.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /5 - js/ES6/Module Exercise Problem.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Exercise 6 | 7 | 8 |
9 |
10 |
11 |

Re-write the below Code using the ES6 Features you learned throughout this Module.

// Exercise 1 - Maybe use an Arrow Function?
12 | var double = function(value) {
13 |     return value * 2;
14 | };
15 | console.log(double(10));
16 | 
17 | // Exercise 2 - If only we could provide some default values...
18 | var greet = function (name) {
19 |     if (name === undefined) { name = "Salman"; }
20 |     console.log("Hello, " + name);
21 | };
22 | greet();
23 | greet("Anna");
24 | 
25 | // Exercise 3 - Isn't there a shorter way to get all these Values?
26 | var numbers = [-3, 33, 38, 5];
27 | console.log(Math.min.apply(Math, numbers));
28 | 
29 | // Exercise 4 - I have to think about Exercise 3 ...
30 | var newArray = [55, 20];
31 | Array.prototype.push.apply(newArray, numbers);
32 | console.log(newArray);
33 | 
34 | // Exercise 5 - That's a well-constructed array.
35 | var testResults = [3.89, 2.99, 1.38];
36 | var result1 = testResults[0];
37 | var result2 = testResults[1];
38 | var result3 = testResults[2];
39 | console.log(result1, result2, result3);
40 | 
41 | // Exercise 6 - And a well-constructed object!
42 | var scientist = {firstName: "Will", experience: 12};
43 | var firstName = scientist.firstName;
44 | var experience = scientist.experience;
45 | console.log(firstName, experience);
46 |
47 |
48 |
49 | 50 | 51 | -------------------------------------------------------------------------------- /6 - react/news-demo/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /3 - css/css-intermediate-challenge/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Clipboard landing page 9 | 10 | 11 | 20 | 21 | 22 | A history of everything you copy Clipboard allows you to track and organize 23 | everything you copy. Instantly access your clipboard on all your devices. 24 | Download for iOS Download for Mac Keep track of your snippets Clipboard 25 | instantly stores any item you copy in the cloud, meaning you can access your 26 | snippets immediately on all your devices. Our Mac and iOS apps will help you 27 | organize everything. Quick Search Easily search your snippets by content, 28 | category, web address, application, and more. iCloud Sync Instantly saves 29 | and syncs snippets across all your devices. Complete History Retrieve any 30 | snippets from the first moment you started using the app. Access Clipboard 31 | anywhere Whether you’re on the go, or at your computer, you can access all 32 | your Clipboard snippets in a few simple clicks. Supercharge your workflow 33 | We’ve got the tools to boost your productivity. Create blacklists Ensure 34 | sensitive information never makes its way to your clipboard by excluding 35 | certain sources. Plain text snippets Remove unwanted formatting from copied 36 | text for a consistent look. Sneak preview Quick preview of all snippets on 37 | your Clipboard for easy access. Clipboard for iOS and Mac OS Available for 38 | free on the App Store. Download for Mac or iOS, sync with iCloud and you’re 39 | ready to start adding to your clipboard. Download for iOS Download for Mac 40 | FAQs Contact Us Privacy Policy Press Kit Install Guide 41 | 42 | 43 | -------------------------------------------------------------------------------- /4 - masterclass/images/icon-messages.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /6 - react/news-demo/src/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /4 - masterclass/images/icon-communities.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-two/images/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3 - css/css-two-challenge/images/illustration-devices.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /6 - react/news-demo/src/serviceWorker.js: -------------------------------------------------------------------------------- 1 | // This optional code is used to register a service worker. 2 | // register() is not called by default. 3 | 4 | // This lets the app load faster on subsequent visits in production, and gives 5 | // it offline capabilities. However, it also means that developers (and users) 6 | // will only see deployed updates on subsequent visits to a page, after all the 7 | // existing tabs open on the page have been closed, since previously cached 8 | // resources are updated in the background. 9 | 10 | // To learn more about the benefits of this model and instructions on how to 11 | // opt-in, read https://bit.ly/CRA-PWA 12 | 13 | const isLocalhost = Boolean( 14 | window.location.hostname === 'localhost' || 15 | // [::1] is the IPv6 localhost address. 16 | window.location.hostname === '[::1]' || 17 | // 127.0.0.0/8 are considered localhost for IPv4. 18 | window.location.hostname.match( 19 | /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/ 20 | ) 21 | ); 22 | 23 | export function register(config) { 24 | if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { 25 | // The URL constructor is available in all browsers that support SW. 26 | const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href); 27 | if (publicUrl.origin !== window.location.origin) { 28 | // Our service worker won't work if PUBLIC_URL is on a different origin 29 | // from what our page is served on. This might happen if a CDN is used to 30 | // serve assets; see https://github.com/facebook/create-react-app/issues/2374 31 | return; 32 | } 33 | 34 | window.addEventListener('load', () => { 35 | const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; 36 | 37 | if (isLocalhost) { 38 | // This is running on localhost. Let's check if a service worker still exists or not. 39 | checkValidServiceWorker(swUrl, config); 40 | 41 | // Add some additional logging to localhost, pointing developers to the 42 | // service worker/PWA documentation. 43 | navigator.serviceWorker.ready.then(() => { 44 | console.log( 45 | 'This web app is being served cache-first by a service ' + 46 | 'worker. To learn more, visit https://bit.ly/CRA-PWA' 47 | ); 48 | }); 49 | } else { 50 | // Is not localhost. Just register service worker 51 | registerValidSW(swUrl, config); 52 | } 53 | }); 54 | } 55 | } 56 | 57 | function registerValidSW(swUrl, config) { 58 | navigator.serviceWorker 59 | .register(swUrl) 60 | .then(registration => { 61 | registration.onupdatefound = () => { 62 | const installingWorker = registration.installing; 63 | if (installingWorker == null) { 64 | return; 65 | } 66 | installingWorker.onstatechange = () => { 67 | if (installingWorker.state === 'installed') { 68 | if (navigator.serviceWorker.controller) { 69 | // At this point, the updated precached content has been fetched, 70 | // but the previous service worker will still serve the older 71 | // content until all client tabs are closed. 72 | console.log( 73 | 'New content is available and will be used when all ' + 74 | 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' 75 | ); 76 | 77 | // Execute callback 78 | if (config && config.onUpdate) { 79 | config.onUpdate(registration); 80 | } 81 | } else { 82 | // At this point, everything has been precached. 83 | // It's the perfect time to display a 84 | // "Content is cached for offline use." message. 85 | console.log('Content is cached for offline use.'); 86 | 87 | // Execute callback 88 | if (config && config.onSuccess) { 89 | config.onSuccess(registration); 90 | } 91 | } 92 | } 93 | }; 94 | }; 95 | }) 96 | .catch(error => { 97 | console.error('Error during service worker registration:', error); 98 | }); 99 | } 100 | 101 | function checkValidServiceWorker(swUrl, config) { 102 | // Check if the service worker can be found. If it can't reload the page. 103 | fetch(swUrl, { 104 | headers: { 'Service-Worker': 'script' }, 105 | }) 106 | .then(response => { 107 | // Ensure service worker exists, and that we really are getting a JS file. 108 | const contentType = response.headers.get('content-type'); 109 | if ( 110 | response.status === 404 || 111 | (contentType != null && contentType.indexOf('javascript') === -1) 112 | ) { 113 | // No service worker found. Probably a different app. Reload the page. 114 | navigator.serviceWorker.ready.then(registration => { 115 | registration.unregister().then(() => { 116 | window.location.reload(); 117 | }); 118 | }); 119 | } else { 120 | // Service worker found. Proceed as normal. 121 | registerValidSW(swUrl, config); 122 | } 123 | }) 124 | .catch(() => { 125 | console.log( 126 | 'No internet connection found. App is running in offline mode.' 127 | ); 128 | }); 129 | } 130 | 131 | export function unregister() { 132 | if ('serviceWorker' in navigator) { 133 | navigator.serviceWorker.ready 134 | .then(registration => { 135 | registration.unregister(); 136 | }) 137 | .catch(error => { 138 | console.error(error.message); 139 | }); 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /5 - js/ES6/index.js: -------------------------------------------------------------------------------- 1 | // let & const 2 | 3 | console.log("LET & CONST"); 4 | let variable = "Test"; 5 | console.log(variable); 6 | // ✅null 7 | 8 | variable = "Another value"; 9 | console.log(variable); 10 | 11 | const maxMarks = 100; 12 | console.log(maxMarks); 13 | // maxMarks = 99; // Won't work 14 | 15 | // Block scope 16 | function reset() { 17 | // console.log(variable); 18 | let variable = null; 19 | console.log(variable); 20 | } 21 | reset(); 22 | console.log(variable); 23 | 24 | // Arrow Functions 25 | console.log("ARROW FUNCTIONS"); 26 | const addNumbers = function (number1,number2){ 27 | return number1 + number2; 28 | }; 29 | console.log(addNumbers(10, 3)); 30 | 31 | const multiplyNumbers = (number1,number2) => number1 * number2; 32 | console.log(multiplyNumbers(10, 3)); 33 | 34 | const greet = () => { 35 | console.log("Hello!"); 36 | }; 37 | greet(); 38 | 39 | const greetFriend = friend => console.log(friend); 40 | greetFriend("Taj"); 41 | 42 | // Default Parameters 43 | console.log("DEFAULT PARAMETERS"); 44 | const countdown = (start = 10) => { 45 | console.log(start); 46 | while (start > 0) { 47 | start--; 48 | } 49 | console.log("Done!", start); 50 | }; 51 | countdown(); 52 | 53 | // Rest & Spread 54 | console.log("REST & SPREAD"); 55 | const numbers = [1, 10, 99, -5]; 56 | console.log(Math.max(33, 99, 10, -3)); 57 | console.log(Math.max(...numbers)); 58 | 59 | function makeArray(name, ...args) { 60 | return args; 61 | } 62 | console.log(makeArray("Salman", 1, 2, 6)); 63 | 64 | //Destructuring 65 | 66 | //Destructuring -Array 67 | 68 | const myHobbies = ['Cooking','Sports']; 69 | console.log(myHobbies[0],myHobbies[1]); 70 | 71 | const myHobby1 = myHobbies[0]; 72 | const myHobby2 = myHobbies[1]; 73 | 74 | console.log(myHobby1,myHobby2); 75 | 76 | //ES6 77 | 78 | // const [hobby1,hobby2] = myHobbies; 79 | // console.log(hobby1,hobby2) 80 | 81 | 82 | //Destructuring - Objects 83 | const userData = {username: "Salman",age:24} 84 | const myName = userData.username; 85 | const age = userData.age; 86 | console.log(myName,age); 87 | 88 | //ES6 89 | 90 | // const {username,age} = userData; 91 | // console.log(username,age) 92 | 93 | 94 | //Alias 95 | // const {username:myName,age:myAge} = userData; 96 | 97 | // console.log(myName,myAge); 98 | 99 | //Template Literals 100 | 101 | const myFriendName = 'Taj'; 102 | const greeting = "Happy Birthday " + myFriendName + ", Have a Great year ahead."; 103 | console.log(greeting); 104 | 105 | //ES6 106 | 107 | // const greeting = `Happy birthday ${myFriendName} 108 | // Have a great Life ahead, be cool as always 109 | // `; 110 | // console.log(greeting); 111 | 112 | // Value vesses Reference 113 | 114 | //1.Value type copy 115 | 116 | // let x = 10; 117 | // let y = x; 118 | 119 | // x = 20; 120 | 121 | 122 | //2.Reference Copy 123 | 124 | // let x = { value: 10}; 125 | // let y = x; 126 | 127 | // x.value = 20; 128 | 129 | // console.log(y); 130 | 131 | // Cloning Objects Two ways 132 | 133 | // const circle = { 134 | // radius: 1, 135 | // area: 20, 136 | // draw() { 137 | // console.log('draw') 138 | // } 139 | // }; 140 | 141 | // 1. First way 142 | 143 | // const another = {}; 144 | // for(let key in circle) { 145 | // // console.log(key,circle[key]) 146 | // another[key] = circle[key] 147 | // } 148 | 149 | // 1. Second way using spread operator 150 | // const another = {...circle} 151 | // console.log(another); 152 | 153 | 154 | //Arrays Adding and Removing 155 | 156 | // const numbers = [1,2,4,5]; 157 | 158 | // const last = numbers.pop(); 159 | 160 | // const first = numbers.shift(6); 161 | 162 | // const middle = numbers.splice(2); 163 | // console.log(numbers); 164 | 165 | 166 | // console.log(numbers.indexOf(1)); 167 | 168 | // const Obj = [ 169 | // {id: 1,name: 'a'}, 170 | // {id: 2,name: 'b'} 171 | // ]; 172 | 173 | //Array helper Methods vanilla to ES6 transformation 174 | 175 | // const result = Obj.find(function(element) { 176 | // return element.name === 'b'; 177 | // }); 178 | 179 | 180 | // const result = Obj.find((element) => { 181 | // return element.name === 'b'; 182 | // }); 183 | 184 | // const result = Obj.find(element => element.name === 'b'); 185 | // const res = Obj.find(e => e.id == 1); 186 | 187 | // console.log(res) 188 | 189 | // const numbers = [0,-1,1.3,2,-3]; 190 | 191 | //Array helper methods in ES6 192 | // forEach 193 | // forEach accept a function iterator that loop through each item in an array 194 | 195 | const array = [1,2,3,4] 196 | array.forEach(item => console.log(item)) 197 | 198 | // so above code will print 1 2 3 4. You can also create a function and pass the reference into forEach, like this 199 | 200 | const items = (item) => { console.log(item) } 201 | array.forEach(items) 202 | // It will produce the same result which is 1 2 3 4. 203 | 204 | // Map 205 | // Map will loop through each item of array, same like forEach but Map returns the value of the array. 206 | 207 | const arr = [{name:"James",age:18}, {name:"Alice",age:20}] 208 | const person_names = arr.map(person => person.name); 209 | 210 | console.log(person_names); 211 | 212 | // That will print 213 | // ["Salman”,”Taj”] 214 | // Easy? One of the biggest advantage to use Map over a old-school for loop is that you don’t hold temporary variable. Let’s do a reverse example for above code using for loop. 215 | 216 | const arrayOfObjects = [{name:"Salman",age:24}, {name:"Taj",age:18}] 217 | let temp = [] 218 | for(let i = 0; i < arrayOfObjects.length; i++){ 219 | temp.push(arrayOfObjects[i].name) 220 | } 221 | console.log(temp) 222 | // See? Map is no magic. Map significantly reduced the amount of code and avoided the use of variable holder. 223 | 224 | 225 | // filter 226 | // Filter return array based on the boolean of the comparison 227 | 228 | const fruits = [ 229 | {name:"banana",color:"yellow"}, 230 | {name:"watermelon",color:"red"}, 231 | {name:"orange",color:"orange"} 232 | ] 233 | const filteredFruits = fruits.filter(fruit => fruit.color === "yellow"); 234 | console.log(filteredFruits) 235 | // Above code will return [{name:”banana”,color:”yellow”}]. Filter is often use in filtering and sorting of a list. 236 | 237 | 238 | // find 239 | // find will return the record if a particular element is found in the array. 240 | 241 | let x = [ 242 | {name:"jay",age:1}, 243 | {name:"Veeru",age:30} 244 | ] 245 | x.find(obj => obj.name === "jay") 246 | // x will return {name"jay",age:1} 247 | 248 | // reduce 249 | // reduce is the most flexible helper, we can probably reimplement all the other helpers by just using reduce. Since reduce is the most complicated one, let’s do a classic normal for loop first. 250 | const numbers = [1,2,3,4,5] 251 | let sum = 0 252 | for(let i=0;i sum + numbers, 0) 259 | // reduce takes two arguments, the first argument is the iterator function, which in above case sum is the accumulator and numbers is an array, the second argument is the initial value, for our case we want it to be zero. -------------------------------------------------------------------------------- /4 - masterclass/images/screen-mockups.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /5 - js/JS-Basics/index.js: -------------------------------------------------------------------------------- 1 | //1. Variable 2 | 3 | var x; // declaring x 4 | console.log(x); 5 | // output: undefined 6 | 7 | /* 8 | A variable can be neither declared nor defined. 9 | When we try to reference such variable then the result will be not defined. 10 | */ 11 | 12 | // console.log(y); 13 | // Output: ReferenceError: y is not defined 14 | 15 | var z = 1; // ✅ 16 | 17 | // 2.Better Boolean Variable Names 18 | 19 | // Avoid Single Letter Names 20 | 21 | var h; // 😱 huh, what's h?? 22 | 23 | // Avoid Acronyms 24 | var cra; // I bet you have no idea. 25 | 26 | // Avoid Abbreviations 27 | var categ; // Sure we can deduce you're saying category here, but let's just used the full name, so it's not a guessing game 😜 28 | 29 | // Avoid Meaningless Names 30 | var foo; // what is foo? 🧐 31 | 32 | //3.Primitive Data types 33 | 34 | var name = "Salman"; 35 | typeof name; // string 36 | 37 | var age = 24; 38 | typeof age; //number 39 | 40 | var isDeveloper = true; 41 | typeof isDeveloper; //boolean 42 | 43 | var address; 44 | typeof address; //undefined 45 | 46 | var savings = null; 47 | typeof savings; //Object 48 | 49 | var v = Symbol(); 50 | typeof v; //Symbol 51 | 52 | /* 53 | The way to convert from one 54 | type to another: coercion 55 | */ 56 | 57 | var value1 = "5"; 58 | var value2 = 9; 59 | var sum = value1 + value2; 60 | 61 | console.log(sum); //Output: 59 62 | /* 63 | JavaScript has coerced the 9 from a number into a string 64 | and then concatenated the two values together,resulting in a string of 59. 65 | */ 66 | 67 | var msg1 = "There are "; 68 | var numStudents = 25; 69 | var msg2 = " students in class"; 70 | 71 | console.log(msg1 + numStudents + msg2); 72 | //Output: "There are 25 students" 73 | 74 | // Coercion: string concatenation (number to string) 75 | 76 | // Number + Number = Number; 77 | // Number + String = String; 78 | // String + Number = String; 79 | // String + String = String; 80 | 81 | //4.Function 82 | 83 | function smaple() { 84 | console.log("called sample function"); 85 | } 86 | 87 | //Function Invocation or calling the function 88 | smaple(); 89 | //Output: called sample function 90 | 91 | function add(a, b) { 92 | var c = a + b; 93 | return c; 94 | } 95 | 96 | var res = add(5, 4); 97 | //value i.e 9 which is returned from add function are storing in a varibale res. 98 | console.log(res); 99 | //output: 9 100 | 101 | //5.Hoisting 102 | 103 | //Function Hoisting 104 | 105 | calculatedAge(1990); 106 | 107 | function calculatedAge(year) { 108 | //Function has already been available before executing 109 | console.log(2016 - year); 110 | } 111 | 112 | //variable Hoisting 113 | 114 | console.log("hmmm", ages); 115 | var ages = 23; 116 | 117 | //6.Scope 118 | 119 | var teacher = "Salman"; 120 | function otherClass() { 121 | teacher = "Tajammul"; 122 | topic = "JS"; 123 | console.log("Welcome!", topic); 124 | } 125 | otherClass(); 126 | //Welcome! JS 127 | 128 | var myAge = 20; 129 | function foo() { 130 | var myAge = 60; 131 | console.log("Inside", myAge); 132 | } 133 | foo(); 134 | console.log("Outside", myAge); 135 | 136 | var name = "John"; 137 | 138 | function first() { 139 | var a = "Hello!"; 140 | second(); 141 | var x = a + name; 142 | } 143 | 144 | function second() { 145 | var b = "Hi!"; 146 | third(); 147 | var y = b + name; 148 | } 149 | 150 | function third() { 151 | var c = "Hey!"; 152 | var z = c + name; 153 | console.log(z); 154 | } 155 | 156 | first(); 157 | 158 | // 7. IIFEs 159 | 160 | (function() { 161 | var aName = "Barry"; 162 | console.log(aName); 163 | })(); 164 | 165 | // Array 166 | 167 | var arrayList = ["🍫", "😋", "🍦", "😋"]; 168 | console.log(arrayList.length); 169 | console.log(arrayList[1]); 170 | 171 | //Array built in functions 172 | 173 | arrayList.push("🍎"); 174 | //Insert new element at the end of an array 175 | console.log(arrayList); 176 | 177 | arrayList.pop(); 178 | //Removes last element from the index 179 | 180 | arrayList.shift(); 181 | //Removes first element of the array 182 | 183 | arrayList.unshift(); 184 | //Insert new element at start of an array 185 | 186 | arrayList.reverse(); 187 | //Reverses elements in the array 188 | 189 | //Function Expression 190 | 191 | function sub(a, b) { 192 | return a - b; 193 | } 194 | 195 | var result = sub(9, 10); 196 | 197 | //Above same function can be written like this, it's called function expression 198 | 199 | var sub = function(a, b) { 200 | return a - b; 201 | }; 202 | 203 | sub(5, 6); 204 | 205 | console.log(sub); 206 | 207 | //Objects 208 | 209 | var person = { 210 | name: "Salman", 211 | age: 24, 212 | address: { 213 | Town: "Hiriyur", 214 | city: "Chitradurgha", 215 | state: "karnataka", 216 | pincode: 577511 217 | } 218 | }; 219 | 220 | //Accessing the Objects Properties using . notation and [] 221 | 222 | console.log(person.name); 223 | //Alias 224 | console.log(person["name"]); 225 | 226 | console.log(person.address.Town); 227 | //Alias 228 | console.log(person["address"]["Town"]); 229 | 230 | //Adding new values to Object 231 | person.contactNumber = 9535386618; 232 | console.log(person); 233 | 234 | // JSON - Array of Objects 235 | 236 | var access = { 237 | tutors: [ 238 | { 239 | name: "Taj", 240 | age: 24, 241 | address: { 242 | Town: "Chennapatna", 243 | city: "Ramanagaram", 244 | state: "karnataka", 245 | pincode: 562159 246 | } 247 | }, 248 | { 249 | name: "Salman", 250 | age: 24, 251 | address: { 252 | Town: "Hiriyur", 253 | city: "Chitradurgha", 254 | state: "karnataka", 255 | pincode: 577511 256 | } 257 | } 258 | ] 259 | }; 260 | 261 | console.log(access.tutors); 262 | 263 | //Operator Precedence 264 | 265 | var isValue = 3 < 2 < 1; 266 | //According to us we should get false, but it returns true becuase of Associativity of operators L - R. 267 | // First it will check 3 < 2 and returns false, then false will be types casted to number(false -> 0). 268 | // 0 < 1 returns true 269 | console.log(isValue); 270 | 271 | //To Know more about the operators visit MDN documentaion 272 | 273 | //This 274 | 275 | // When we run JS file global execution context will be created, 276 | // along with execution context `this` and `Window` object will be created. here `this`===`window`. 277 | 278 | //Scenario One 279 | function demo() { 280 | console.log(this); 281 | //this here refers to window(global) object 282 | } 283 | 284 | //Scenario Two 285 | var video = { 286 | title: "JS", 287 | play: function() { 288 | console.log(this); 289 | //Here `this` refers to scope of the Object, that's why it's easy to access title like this as below 290 | console.log(this.title); 291 | } 292 | }; 293 | 294 | //1.this in function refers to window Object 295 | //2. Function within object is called `Method` and `this` keyword within Method refers to scope of the Object 296 | 297 | //String Functions 298 | 299 | var college = "Ghousia"; 300 | console.log(college.length); 301 | console.log(college.charAt(0)); 302 | //You can access any charatcter by passing index value to `charAt` function 303 | 304 | //Note: Explore on split and join functions 305 | 306 | //Reversing the string 307 | 308 | var branch = "computerscience"; 309 | var reverseBranch = ""; 310 | 311 | for (i = 0; i < branch.length; i++) { 312 | reverseBranch = branch.charAt(i) + reverseBranch; 313 | console.log(reverseBranch); 314 | } 315 | -------------------------------------------------------------------------------- /4 - masterclass/images/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4 - masterclass/images/illustration-grow-together.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4 - masterclass/images/illustration-your-users.svg: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------