JavaScript Strings: Properties and Methods

提供方
Coursera Project Network
在此指导项目中,您将:

Declare and use a string variable in JavaScript.

Write code using JavaScript string properties.

Write code using JavaScript string methods.

Clock1 hour and 25 minutes
Beginner初级
Cloud无需下载
Video分屏视频
Comment Dots英语(English)
Laptop仅限桌面

In this beginning-level course you will learn and practice new string-handling skills using Notepad++ to write JavaScript code and the Chrome browser to view your results. Since text data is commonly used as a “string” in JavaScript, the ability to use and manipulate strings is a key component in JavaScript programming. You will learn some of the properties and methods that make string handling easier. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培养的技能

  • String properties
  • String methods
  • Notepad++
  • javascript syntax
  • Format Strings

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  1. Write JavaScript code to declare a variable with a string data type, and then assign a value to that variable.

  2. Practice formatting strings with additional spacing and using the plus sign as a concatenation symbol.

  3. Code the JavaScript statement to determine how many characters are in a string of data using the .length property.

  4. Use the .toUpperCase() method to convert a string to upper case characters.

  5. Use the concat() and trim() methods to concatenate two strings together or eliminate part of a string.

  6. Write the JavaScript code to extract a small string of characters from a larger string using the slice() method.

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心