CS-305-Web Systems and Technologies
CS-305-Web Systems and Technologies
JavaScript Basics
Assigning projects to student that will cover almost all concepts of JavaScript that you studied above.
Assigning projects to student that will cover concepts related to HTML, CSS and Bootstrap only.
Props
• Importance of props
24 • How to pass props to a component
• How to specify default values for props
• How to pass an object as props
Tasks-To-Do for Previous Lecture
• Create a component that will generate result of a student. We will have to give it name of student, email and marks of
five subjects (max of 100 marks for each subject). The component will display student name, his/her email, marks w.r.t
25 different subjects, actual total marks, obtained total marks and percentage of marks.
• If only name and email of student is sent to the component, then marks 0 is used as by-default.
• Create the component such that if either name or email is not sent to the component, then the component will generate
an error instead of displaying any result sheet.
Handling Forms
• Component state
• Control changes in form-data by using event-handler
26 • Hooks
o useState
o useEffect
o useCallback
Tasks-To-Do for Previous Lecture
• Getting data from form you create in your project and display the data as it is received.
27
• Perform some operations on data, then show result. For example, show percentage of marks with respect to received
data from form.
JavaScript More
• Asynchronous JavaScript
o Understanding asynchronous code
o Callback functions
• Promises and Fetch API
28
o Promises and their use in asynchronous programming
o Fetching data from APIs using the Fetch API
• Document Object Model (DOM)
o Manipulating the DOM with JavaScript
o Dynamic content and forms
Tasks-To-Do for Previous Lecture
• Create an interactive webpage with event listeners
29
• Build a webpage that dynamically updates content with DOM manipulation
• Enhance a form on your webpage with JavaScript validation.
30 Completing your project based on react
31 Presenting your project
32 Presenting your project