Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JavaScript Question: Please follow the instruction below 1. charAt Write a function called charAt which accepts a string and an index (number) and returns the
JavaScript Question:
Please follow the instruction below
1. charAt Write a function called charAt which accepts a string and an index (number) and returns the character at that index. The function should return an empty string if the number is greater than the length of the string. Do not use the built in charAt method - the tests will fail if you do! i > 'use strict'; 26 27 /* 28 * Complete the 'charAt' function below. 29 30 * The function is expected to return a CHARACTER. 31 * The function accepts following parameters: 32 1. STRING str 33 2. INTEGER index 34 */ 35 36 function charAt(str, index) { 37 } * 38Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started