Bai7 javascript - HTML DHTML v Javascript V Hng Khanh Thc...

Info icon This preview shows pages 1–5. Sign up to view the full content.

HTML, DHTML và Javascript Võ H ng Khanh Lab 07 - 1 / 5 - Th c hành 07 Cú pháp căn bả n c a Javascript (tt) A. M C TIÊU S d ng các c ấu trúc điề u khi n. Thao tác v i các thành ph n c a bi u m u. S d ng l nh eval. B. BÀI T P T ỪNG BƯỚ C 1. S d ng l nh eval T o bi u m u cho phép nh p vào hai s và m t trong các phép toán: +, - , *, /, % sau đó tính toán và hi n th k ế t qu d a vào các d li ệu mà đã nhậ p. Mã l nh:
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

HTML, DHTML và Javascript Võ H ng Khanh Lab 07 - 2 / 5 - 2. S d ng c u trúc l nh switch T o bi u m u cho phép nh ập vào năm và tháng sau đó hiể n th s ngày c ủa tháng đó. Mã l nh:
Image of page 2
HTML, DHTML và Javascript Võ H ng Khanh Lab 07 - 3 / 5 -
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

HTML, DHTML và Javascript Võ H ng Khanh Lab 07 - 4 / 5 - 3. S d ng câu l nh l p Mã l nh:
Image of page 4
HTML, DHTML và Javascript Võ H
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '14

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern