Name shortner function in javascript using substring method 🤩 #javascript #codinginterview

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Because of these kind of videos freshers are not getting jobs. 😂

aviralgupta
Автор

with css-

overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 10ch;

better option when you need fixed width instead of fixed number of characters

SahilKumar-zpfx
Автор

If you are concerned by actual size of alphabet string. And want to halve the space needed to store same string.
You left shift the odd position string by 4 bits and do an or with the next even ones. You will get half the size needed. You can also extract full name back by reversing the process.

ASHUTOSHVISHWAKARMA-kzqw
Автор

When you successfully print, "Hello World" For the first time, get same filling. 😂

howthingswork
Автор

Ye program to icse board ke 10 th board me hota h

AlienX-hs
Автор

I have to say that INDIAN people are so talented.Love from Bangladesh.

ahmedtanvir
Автор

This trick actually worked 😂
Kudos to you

study
Автор

You can directly do with .slice(0, maxlength)

Proboy
Автор

Interviewer ko question ka solution hi pata nahi tha.. and once you solved.. he started following 😂😂

saikatdutta
Автор

Used to solve these questions in my class 9 mcqs

predator
Автор

You made it so easy, and that's why it's easy.

Mohitsahachowdhury
Автор

What is great in this. It's simple and easy question

Mahirkushwaha
Автор

Kyunki javascript me underscore dekha nahi ja ra mujse islie nhi kar paraha follow 😂😂

SmashingChords
Автор

Aese questions kash humse bhi puche interview wale 😢

potato
Автор

We have to do maxLength -3 to reserve length for 3 dots ...

PrasunSinha-gyil
Автор

No wonder innovations are not taking place in India, if this is the acceptable solution to a question which could have been something brilliant

niyazrafatkhan
Автор

Kar liya bhai follow or full support ❤❤❤❤

devrajkumar-fe
Автор

You added three extra characters at the end so now the total length becomes max length +3

harpalriat
Автор

That is not the name shortner that is the name trimmer. Shortner means an alternative string which is small but it points to a big string. So that you can share the small string.

LazzyProgrammer
Автор

Ohh woowwww😱😱😱😱😱 I don't know that thanks for this knowledge

iganic
join shbcf.ru