0% found this document useful (0 votes)
18 views

Lecture6 PDF

This document discusses web programming using Python and JavaScript. It covers topics like single-page applications, working with windows and dimensions, and the differences between imperative and declarative programming. React is mentioned as a library that uses declarative programming by updating views when data changes rather than directly manipulating the DOM.

Uploaded by

Moudi Mouhamadou
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Lecture6 PDF

This document discusses web programming using Python and JavaScript. It covers topics like single-page applications, working with windows and dimensions, and the differences between imperative and declarative programming. React is mentioned as a library that uses declarative programming by updating views when data changes rather than directly manipulating the DOM.

Uploaded by

Moudi Mouhamadou
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Web Programming

with Python and JavaScript


User Interfaces
Single-Page Applications
window
window

window.innerHeight

window.innerWidth
window
window.scrollY

window.innerHeight

window.innerWidth

document.body.offsetHeight
React
Declarative Programming
Imperative Programming
View
<h1>0</h1>

Logic

let num = parseInt(document.querySelector("h1").innerHTML);


num += 1;
document.querySelector("h1").innerHTML = num;
Declarative Programming
View
<h1>{num}</h1>

Logic

num += 1;
React
ReactDOM
Babel
User Interfaces
Web Programming
with Python and JavaScript

You might also like