Enable contrast version

Tutor profile: Mike M.

Mike M.
Computer Programming professor for 21 years

Questions

Subject: Web Development

TutorMe
Question:

Explain how CSS and JavaScript can control the appearance and behavior of HTML elements within a Web site or page.

Mike M.
Answer:

Any Web document presents its structure as a model to both CSS and JavaScript, that control the appearance and behavior respectively. JavaScript uses the Document Object Model, which presents each HTML element within a web page as an object with properties and methods that can be altered through the programming interface. CSS uses the CSS Object Model, also presented with each element, to alter the appearance and some behaviors of the page elements. A typical example: <p id="myP">This is a paragraph on the page. </p> CSS: #myP { color: red; } /* the text will be red in color */ JS: document.querySelector('#myP').addEventListener('click', e=>{ e.preventDefault(); // stop any default behavior like page refresh runProc(); // call another procedure in the program });

Subject: Javascript Programming

TutorMe
Question:

Explain the difference between var, let, and const used to declare variables in a JavaScript program.

Mike M.
Answer:

Since the adoption of ES6 (2015), the var keyword has been replaced by let and const. The var declaration was unreliable in scope, whereas let can be scoped globally or locally, and is only available to its local scope. The const keyword allows a variable to contain a value that is immutable during a program run, hence cannot be changed programmatically.

Subject: CSS

TutorMe
Question:

Explain how padding, border, and margin relate to the CSS Box Model.

Mike M.
Answer:

Within the CSS Box Model, padding relates to the space around the content of a parent tag set. The content resides within the container tag set, and the amount of space between the content and the border of the container is the padding. The border, if set, defines how many pixels the edge of the container element occupies, and the margins are the space outside of the container. All of these contribute to the amount of space the container will occupy within the page.

FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.
BEST IN CLASS SINCE 2015
TutorMe homepage
Made in California by GoGuardian
Copyright © 2022. Zorro Holdco, LLC doing business as TutorMe.
All Rights Reserved.
High Contrast Mode
On
Off