Strings Cheat Sheet / JavaScript

Yoon·2021년 8월 18일
0

String : 문텍스트를 나타나는데에 사용되는 데이터 유형. 더블 or 싱글 쿼테이션으로 표현

*Choose one implementation, either single or double quote, and use consistently. 
*Teams will often have agreed upon style guide.(프로젝트 팀에 맞게) 


        **//QUOTES**
        var greeting = "It's great to see you!";
        var response = 'Billy said, "I am sick"';

        **//ESCAPE CHARACTER**
        var greeting = 'It\'s great to see you!';
        var response = "Billy said, \"I am sick";

        **//LENGTH PROPERTY**
        var greeting = "It's great to see you!";
        greeting.length; //22

        **//STRING METHODS**
        **//toUpperCase()**
        var greeting = 'Good to see you!';
        greeting;//'Good to see you!';
        
        var shoutGreeting =  greeting.toUpperCase();
        shoutGreeting; // 'GOOD TO SEE YOU';
        
        **//Joining Strings**
        var greeting = "Hi,";
        var myName = "Rob";
        greeting + " " + myName; // "Hi, Rob"
        


_JavaScript Beginner Bootcamp(2021)_

15개의 댓글

comment-user-thumbnail
2022년 6월 13일

Your lines of code are very accurate, I will refer and write according to you. https://sedecordle.io https://wordle-2.com

답글 달기
comment-user-thumbnail
2022년 8월 9일

Thank you for https://weavergame.io giving this world a new color. It also https://animedle.co/ helps me a lot to teach me how to love life, love people and appreciate everything around.

답글 달기
comment-user-thumbnail
2022년 10월 5일

Many online games are enjoyable. I like to play a knockout game that tests boys' wits.
https://stumble-guys.com

답글 달기
comment-user-thumbnail
2022년 11월 8일

These suggestions helped my big exercise a lot, great, https://mapquestdrivingdirections.app thanks.

답글 달기
comment-user-thumbnail
2022년 11월 24일

Thank you for sharing this https://slimerancher2.co great post, I am very impressed with your post, the information given is very meticulous and understandable. I will regularly follow your next post.

답글 달기
comment-user-thumbnail
2023년 2월 2일

I am astonished by the knowledge you provided. Your post taught me a lot of fascinating topics, and I will definitely read your future postings. 1v1 lol

답글 달기
comment-user-thumbnail
2023년 5월 8일

I have complied with your code instructions. Good, I finished https://iogamesio.org/basketbrosio

답글 달기
comment-user-thumbnail
2023년 5월 16일

Can I share it on my web? https://geometrydash.io

답글 달기
comment-user-thumbnail
2023년 5월 30일

Your lines of code are quite exact, and I will use them as a guide and model for my writing. https://basketball-stars.co/

답글 달기
comment-user-thumbnail
2024년 2월 26일

Really good article and very rewarding! Thank you for sharing them with me and everyone. Have a good time with https://wordleunlimited.one online.

답글 달기
comment-user-thumbnail
2024년 8월 24일

In coding, quotes are essential for string representation, whether single or double. Consistency is key, often guided by team style manuals. Speaking of enhancing experiences, try the https://slope-3d.com/ for some fun while sharpening your reflexes!

답글 달기
comment-user-thumbnail
2024년 9월 26일

I made this tonight for the first time and it was easy to make and tasted pretty good. Thank you so much for sharing. https://papaspizzeriagame.com

답글 달기
comment-user-thumbnail
2024년 10월 3일

El sitio https://jugabet.cl/es/page/pgsoft-juegos ofrece una amplia variedad de juegos de PG Soft, una de las desarrolladoras más reconocidas en la industria de los casinos online. Los juegos de PG Soft se destacan por sus gráficos de alta calidad y su jugabilidad innovadora, brindando a los usuarios una experiencia emocionante.

답글 달기
comment-user-thumbnail
2024년 12월 10일

This article is very helpful for newbie like me. I am very appreciated! https://getawayshootout.io

답글 달기
comment-user-thumbnail
약 4시간 전

This Strings Cheat Sheet is a great resource for beginners! Understanding string manipulation in JavaScript is crucial, especially if you're creating interactive games like Bitlife. String methods can enhance gameplay features, like generating random events or character names
https://bitlifefree.io/

답글 달기

관련 채용 정보