Strings in JavaScript (OCR A-Level Computer Science): Quizzes

📚Quizzes
Strings in JavaScript
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

7 questions from this quiz

Show

What are strings in JavaScript?

Sequences of characters used for text

What property shows the number of characters in a string?

.length

What does "JavaScript".length output?

10

What does the .toUpperCase() method do?

Converts all letters to uppercase

What does "JavaScript".toUpperCase() output?

"JAVASCRIPT"

What is a common mistake when comparing strings?

Using == instead of ===

Which operator should always be used for strict equality?

===

Explore OCR A-Level Computer Science Revision Notes by Topics

Explore OCR A-Level Computer Science Model Answers by Topics

Explore OCR A-Level Computer Science Flashcards by Topics

Explore OCR A-Level Computer Science Exam Questions by Topics

Join 100,000+ A-Level students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.