TAILIEUCHUNG - Lecture E-Commerce - Chapter 21: Java Script (part III)

In this chapter, the following content will be discussed: JS Strings, JS numbers, javascript operators, javascript math object, javascript dates, javascript booleans, javascript comparison and logical operators, javascript statements, javascript loop statements ( for, while, do/while), javascript best practices. | CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad Virtual Campus, CIIT COMSATS Institute of Information Technology T3-Lecture-2 JavaScript Part-III T2-Lecture-08 T2-Lecture-7 Ahmed Mumtaz Mustehsan 1- Objectives JS Strings (contd ) JS Numbers JavaScript Operators JavaScript Math Object JavaScript Dates JavaScript Booleans JavaScript Comparison and Logical Operators JavaScript Statements JavaScript loop statements ( for, while, do/while) JavaScript Best Practices T2-Lecture-7 Ahmed Mumtaz Mustehsan Replacing Content The replace() method replaces a specified value with another value in a string: Example str = "Please visit Microsoft!" var n = ("Microsoft","W3Schools"); The replace() method can also take a regular expression as the search value. T2-Lecture-7 Ahmed Mumtaz Mustehsan 1- Convert to Upper Case A string is converted to upper case with the method toUpperCase(): Example var txt = "Hello World!"; // String // txt1 is txt converted to upper var txt1 = (); T2-Lecture-7 Ahmed Mumtaz Mustehsan 1- Convert to Lower Case A string is converted to lower case with the method toLowerCase(): Example var txt = "Hello World!"; // String // txt1 is txt converted to lower var txt1 = (); T2-Lecture-7 Ahmed Mumtaz Mustehsan 1- Convert a String to an Array A string is converted to an array with the built in method (): Example var txt = "a,b,c,d,e" // String (","); // Split on commas (" "); // Split on spaces ("

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.